[cairo-bugs] [Bug 103536] Windows filenames should be in UTF-8 encoding
bugzilla-daemon at freedesktop.org
bugzilla-daemon at freedesktop.org
Sun Nov 5 08:44:37 UTC 2017
https://bugs.freedesktop.org/show_bug.cgi?id=103536
--- Comment #6 from Uli Schlachter <psychon at znc.in> ---
Comment on attachment 135230
--> https://bugs.freedesktop.org/attachment.cgi?id=135230
Patch to use UTF-8 filenames on Windows
Review of attachment 135230:
-----------------------------------------------------------------
Any specific reason why not all calls to fopen() would get this new treatment?
(Although I do agree that it would be a bit stupid for those cases with
hardcoded ASCII file names, but still, consistency-wise it might be a good
idea)
$ git grep fopen | wc -l
60
$ git grep fopen src/ | wc -l
21
(Only src/ might make sense since stuff outside of libcairo does not get access
to libcairo-internal symbols)
I don't have much of an opinion here, I'm just asking.
And API-doc-wise I want to mention the following callers of
_cairo_output_stream_create_for_filename which in turn end up getting the file
name from some public API:
$ git grep _cairo_output_stream_create_for_filename
src/cairo-output-stream-private.h:_cairo_output_stream_create_for_filename
(const char *filename);
src/cairo-output-stream.c:_cairo_output_stream_create_for_filename (const char
*filename)
src/cairo-pdf-surface.c: output = _cairo_output_stream_create_for_filename
(filename);
src/cairo-ps-surface.c: stream = _cairo_output_stream_create_for_filename
(filename);
src/cairo-script-surface.c: stream =
_cairo_output_stream_create_for_filename (filename);
src/cairo-svg-surface.c: stream = _cairo_output_stream_create_for_filename
(filename);
src/cairo-xml-surface.c: stream = _cairo_output_stream_create_for_filename
(filename);
--
You are receiving this mail because:
You are the QA Contact for the bug.
You are the assignee for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.cairographics.org/archives/cairo-bugs/attachments/20171105/6d2317ab/attachment.html>
More information about the cairo-bugs
mailing list