RESOLVED DUPLICATE of bug 180205 180105
jsc binary operates on UTF-8-encoded bytes rather than actual source text
https://bugs.webkit.org/show_bug.cgi?id=180105
Summary jsc binary operates on UTF-8-encoded bytes rather than actual source text
Mathias Bynens
Reported 2017-11-28 13:39:37 PST
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
Attachments
Mathias Bynens
Comment 1 2017-12-01 11:45:09 PST
Mathias Bynens
Comment 2 2017-12-01 11:45:31 PST
Fixed in 180205.
Alexey Proskuryakov
Comment 3 2017-12-01 12:55:41 PST
*** This bug has been marked as a duplicate of bug 180205 ***
Note You need to log in before you can comment on or make changes to this bug.