Bug 9483
Summary: | copy and paste unicode file name into sarfari need to be normalized to Unicode NFC | ||
---|---|---|---|
Product: | WebKit | Reporter: | Frank Yung-Fong Tang <FrankTang+opendarwin> |
Component: | Text | Assignee: | Nobody <webkit-unassigned> |
Status: | RESOLVED DUPLICATE | ||
Severity: | Normal | CC: | ap |
Priority: | P2 | ||
Version: | 416.x | ||
Hardware: | PC | ||
OS: | OS X 10.4 |
Frank Yung-Fong Tang
reproduce procedure:
1. name a file Îñţérñåţîöñåļîžåţîöñ by copy and paste this string into the file name
2. copy the file name again (yes, you need to copy from the file again, the file system api will change what you last paste in from NFC into NFD)
3. paste the file name you copy from the file finder into a html form (say, www.yahoo.com search box)
4. submit that form.
you will find what it submit is in Unicode normalization NFD instead of NFC. This is becaues Mac file name is stored in NFD . You should add an unicode normalization NFC code when you get text from the clipboard.
Attachments | ||
---|---|---|
Add attachment proposed patch, testcase, etc. |
Alexey Proskuryakov
Just like bug 9482, this should work now (we've changed form submission to convert to NFC).
Darin Adler
I'm going to mark this as a duplicate of the bug where we added normalization code.
*** This bug has been marked as a duplicate of 8769 ***