Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Encoded bytes with \x values above 7F (80-FF) not handled correctly #37

Open
slevithan opened this issue Dec 23, 2024 · 0 comments
Open

Comments

@slevithan
Copy link

E.g., standalone \x80 and \xEF\xC0\xBB correctly throw (since the parser is catching these as invalid multibyte sequences), but the valid UTF-8 encoded byte sequence \xE2\x82\xAC is being incorrectly passed through as /\xE2\x82\xAC/. It is in fact equivalent to the single code point \u20AC (or ) in JS.

@slevithan slevithan changed the title Encoded bytes with \x values above \7F not handled correctly Encoded bytes with \x values above 7F (80-FF) not handled correctly Dec 23, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant