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

Provide encoding for group name exception #61

Merged
merged 1 commit into from May 23, 2023

Conversation

headius
Copy link
Member

@headius headius commented Feb 8, 2023

Without an encoding provided, this code assumes the bytes are in the default character set. When they are not, the decoded string will be corrupt. This is the cause of a failure in the strscan library on Windows.

This commit adds encoding to the parameters for named group lookup so that it can be decoded properly if an exception must be raised.

Without an encoding provided, this code assumes the bytes are in
the default character set. When they are not, the decoded string
will be corrupt. This is the cause of a failure in the strscan
library on Windows.

This commit adds encoding to the parameters for named group lookup
so that it can be decoded properly if an exception must be raised.
@headius headius added this to the 2.1.49 milestone Feb 8, 2023
@headius headius modified the milestones: 2.1.49, 2.2.0 May 23, 2023
@headius headius merged commit 4517290 into jruby:master May 23, 2023
@headius headius deleted the group_name_encoding branch May 23, 2023 15:59
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

Successfully merging this pull request may close these issues.

None yet

1 participant