[cairo-bugs] [Bug 103536] Windows filenames should be in UTF-8 encoding

bugzilla-daemon at freedesktop.org bugzilla-daemon at freedesktop.org
Mon Nov 13 19:51:12 UTC 2017


--- Comment #10 from Bill Spitzak <spitzak at gmail.com> ---
I personally am not thrilled that the function has two different methods of
returning errors. I would instead just return null if the utf8->utf16
conversion fails and force errno to whatever it gets if you send invalid utf16
as a filename to Windows. Then it is easier to drop-in replacement of fopen.

If you don't do that it may be better to return the status number for any
failure, rather than the case statements that remain below both calls to this.

You are receiving this mail because:
You are the assignee for the bug.
You are the QA Contact for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.cairographics.org/archives/cairo-bugs/attachments/20171113/ed4309e6/attachment.html>

More information about the cairo-bugs mailing list