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

Missing invalid multibyte escape SyntaxError for Regexp #2104

Open
andrykonchin opened this issue Dec 21, 2023 · 0 comments
Open

Missing invalid multibyte escape SyntaxError for Regexp #2104

andrykonchin opened this issue Dec 21, 2023 · 0 comments
Labels
enhancement New feature or request

Comments

@andrykonchin
Copy link
Member

Combination of Regexp encoding options and forced encodings (I suppose) should lead to the SyntaxError:

# encoding: us-ascii
p /\xFF/u.encoding
ruby script.rb
script.rb: --> script.rb
invalid multibyte escape: /\xFF/
> 3  p /\xFF/u.encoding
script.rb:3: invalid multibyte escape: /\xFF/ (SyntaxError)
@kddnewton kddnewton added the bug Something isn't working label Jan 2, 2024
@kddnewton kddnewton added this to the Ruby 3.4.0 milestone Jan 2, 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