[Webkit-unassigned] [Bug 180105] New: jsc binary operates on UTF-8-encoded bytes rather than actual source text

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Tue Nov 28 13:39:37 PST 2017


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

            Bug ID: 180105
           Summary: jsc binary operates on UTF-8-encoded bytes rather than
                    actual source text
           Product: WebKit
           Version: WebKit Nightly Build
          Hardware: Unspecified
                OS: Unspecified
            Status: NEW
          Severity: Normal
          Priority: P2
         Component: JavaScriptCore
          Assignee: webkit-unassigned at lists.webkit.org
          Reporter: mathias at qiwi.be

There is a difference between input entered directly into the jsc REPL (through a terminal set to UTF-8) vs. passed as a file (saved with UTF-8 encoding).

    $ jsc -e 'print("\xCF\x80" === "π")'
    false

    $ jsc
    >>> print("\xCF\x80" === "π")
    true

This might lead people to (incorrectly!) believe that e.g. jsc’s implementation of Unicode property escapes is broken:

    $ jsc
    >>> /\p{Script=Greek}/u.test("π")
    false

    $ jsc -e 'print(/\p{Script=Greek}/u.test("π"))'
    true

-- 
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/20171128/7b8bfdbb/attachment.html>


More information about the webkit-unassigned mailing list