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

Regexp fixed encoding should raise SyntaxError if source encoding doesn't match a fixed one #2667

Open
andrykonchin opened this issue Apr 2, 2024 · 0 comments
Labels
enhancement New feature or request

Comments

@andrykonchin
Copy link
Member

andrykonchin commented Apr 2, 2024

I just noticed this CRuby behaviour and it seems Parser doesn't support it right now:

p /Ȃ/e.encoding
# regexp encoding option 'e' differs from source encoding 'UTF-8' (SyntaxError)
@kddnewton kddnewton added the bug Something isn't working label Apr 3, 2024
@kddnewton kddnewton added this to the CRuby unblocked milestone Apr 3, 2024
@kddnewton kddnewton added enhancement New feature or request and removed bug Something isn't working labels Sep 25, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants