<html>
<head>
<base href="https://bugs.freedesktop.org/">
</head>
<body>
<p>
<div>
<b><a class="bz_bug_link
bz_status_NEW "
title="NEW - Windows filenames should be in UTF-8 encoding"
href="https://bugs.freedesktop.org/show_bug.cgi?id=103536#c7">Comment # 7</a>
on <a class="bz_bug_link
bz_status_NEW "
title="NEW - Windows filenames should be in UTF-8 encoding"
href="https://bugs.freedesktop.org/show_bug.cgi?id=103536">bug 103536</a>
from <span class="vcard"><a class="email" href="mailto:ajohnson@redneon.com" title="Adrian Johnson <ajohnson@redneon.com>"> <span class="fn">Adrian Johnson</span></a>
</span></b>
<pre>_cairo_fopen() belongs in cairo-misc.c. Just before _cairo_win32_tmpfile()
would be a good place.
It needs to pass through the status returned by cairo_utf8_to_utf16. So
something like:
cairo_status_t
_cairo_fopen (const char *utf8_filename, const char *mode, FILE **file_out);
And add a comment that the status is for the filename conversion. It can return
success and file_out = NULL.
I wouldn't bother using it for hard coded file names. Only the calls to fopen()
where the user supplies the filename.
<span class="quote">> On Unix platforms, the filename is
> + * passed directly to the system</span >
It is all platforms except windows.</pre>
</div>
</p>
<hr>
<span>You are receiving this mail because:</span>
<ul>
<li>You are the assignee for the bug.</li>
<li>You are the QA Contact for the bug.</li>
</ul>
</body>
</html>