[Webkit-unassigned] [Bug 26802] New: JSON.parse fails to parse valid JSON with most Unicode characters

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Mon Jun 29 10:03:48 PDT 2009


https://bugs.webkit.org/show_bug.cgi?id=26802

           Summary: JSON.parse fails to parse valid JSON with most Unicode
                    characters
           Product: WebKit
           Version: 528+ (Nightly build)
          Platform: Macintosh
        OS/Version: Mac OS X 10.5
            Status: UNCONFIRMED
          Severity: Normal
          Priority: P2
         Component: JavaScriptCore
        AssignedTo: webkit-unassigned at lists.webkit.org
        ReportedBy: fds at mailbox.hu


The new native JSON support in the nightly builds breaks most non-Western Latin
websites, as it fails to parse almost any character other than certain basic
Latin 1 letters.

Example:
JSON.parse('"•"');
SyntaxError: Unable to parse JSON string

It even fails to round-trip between its own stringify and parse:
JSON.parse(JSON.stringify('•'));
SyntaxError: Unable to parse JSON string

These of course all work fine with Firefox 3.5, IE 8.0 or Douglas Crockford's
JSON2.js.


-- 
Configure bugmail: https://bugs.webkit.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.



More information about the webkit-unassigned mailing list