[Webkit-unassigned] [Bug 37327] String::format() does not support UTF-8 on all platforms, yet used with UTF-8 strings
bugzilla-daemon at webkit.org
bugzilla-daemon at webkit.org
Sun Feb 3 11:17:30 PST 2019
https://bugs.webkit.org/show_bug.cgi?id=37327
Darin Adler <darin at apple.com> changed:
What |Removed |Added
----------------------------------------------------------------------------
Summary|String::format() does not |String::format() does not
|support UTF-8, yet used |support UTF-8 on all
|with UTF-8 strings |platforms, yet used with
| |UTF-8 strings
--- Comment #3 from Darin Adler <darin at apple.com> ---
This is a portability problem.
A bit of a blindspot for a lot of the project leaders who work at Apple because on Apple’s platforms the underlying C library calls pass through bytes without interpretation and so work fine with UTF-8 strings.
It’s possible we can fix the implementation for those other platforms; I’m not sure what the status of this is.
I suspect this won’t be completely resolved until we stop using C library functions that use format strings entirely (both with String::format and elsewhere), but it’s also true that many of the call sites use the utf8() function on strings that are processed in a way that already guarantees they have only ASCII characters, such as MIME types.
While we do want to get rid of String::format, it might take us a while.
--
You are receiving this mail because:
You are the assignee for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.webkit.org/pipermail/webkit-unassigned/attachments/20190203/bf038484/attachment.html>
More information about the webkit-unassigned
mailing list