[Webkit-unassigned] [Bug 172849] WKWebView upload file which name contains Chinese character results in garbled code
bugzilla-daemon at webkit.org
bugzilla-daemon at webkit.org
Mon Jun 5 09:30:21 PDT 2017
https://bugs.webkit.org/show_bug.cgi?id=172849
Alexey Proskuryakov <ap at webkit.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |aestes at apple.com,
| |webkit-bug-importer at group.a
| |pple.com
See Also| |https://bugs.webkit.org/sho
| |w_bug.cgi?id=164330
--- Comment #3 from Alexey Proskuryakov <ap at webkit.org> ---
Thank you, this does reproduce, and is a WebKit issue.
Andy looked at this with me, and this should be the fix. Just need to add a regression test.
Index: Source/WebKit2/UIProcess/Cocoa/UIDelegate.mm
===================================================================
--- Source/WebKit2/UIProcess/Cocoa/UIDelegate.mm (revision 216685)
+++ Source/WebKit2/UIProcess/Cocoa/UIDelegate.mm (working copy)
@@ -365,7 +365,7 @@
Vector<String> filenames;
for (NSURL *url in URLs)
- filenames.append(url.fileSystemRepresentation);
+ filenames.append(String::fromUTF8(url.fileSystemRepresentation));
resultListener->chooseFiles(filenames);
}];
--
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/20170605/f49bc675/attachment.html>
More information about the webkit-unassigned
mailing list