8000 DateFormatSymbols: Fix parsing of strings with a trailing delimiter by guillerodriguez · Pull Request #33 · ingelabs/classpath · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

DateFormatSymbols: Fix parsing of strings with a trailing delimiter #33

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

Merged
merged 1 commit into from
Jun 6, 2024

Conversation

guillerodriguez
Copy link
Contributor

Some strings in the locale data seem to contain an extraneous trailing delimiter. This results in an incorrect value for the last parsed symbol (the additional delimiter is returned as part of the symbol).

Fix this by adjusting the 'limit' parameter that is passed to Pattern.split(), so that any additional trailing data is not included in the parsed symbols.

Fixes #5 (BZ#83968)

Some strings in the locale data seem to contain an extraneous
trailing delimiter. This results in an incorrect value for the
last parsed symbol (the additional delimiter is returned as part
of the symbol).

Fix this by adjusting the 'limit' parameter that is passed to
Pattern.split(), so that any additional trailing data is not
included in the parsed symbols.

Fixes #5 (BZ#83968)
@guillerodriguez guillerodriguez requested a review from phvega June 5, 2024 16:40
@guillerodriguez guillerodriguez merged commit 670a666 into master Jun 6, 2024
1 check passed
@guillerodriguez guillerodriguez deleted the fix/dateformatsymbols-ignore-trailing-data branch August 29, 2024 15:42
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.

Wrong parsing of strings in DateFormatSymbols
2 participants
0