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

StringUtils should parse locale strings without country but with variant #29248

Closed
bclozel opened this issue Oct 3, 2022 · 0 comments
Closed
Assignees
Labels
in: core Issues in core modules (aop, beans, core, context, expression) type: bug A general bug
Milestone

Comments

@bclozel
Copy link
Member

bclozel commented Oct 3, 2022

Currently StringUtils#parseLocaleString completely skips empty tokens when multiple delimiters are in a row, like __. This means that the en__VARIANT locale is parsed as en_VARIANT.
We've seen such locales introduced with our Java 19 CI and this should be supported.

@bclozel bclozel added type: bug A general bug in: core Issues in core modules (aop, beans, core, context, expression) labels Oct 3, 2022
@bclozel bclozel added this to the 6.0.0-RC1 milestone Oct 3, 2022
@bclozel bclozel self-assigned this Oct 3, 2022
@bclozel bclozel closed this as completed in 3b91eea Oct 3, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
in: core Issues in core modules (aop, beans, core, context, expression) type: bug A general bug
Projects
None yet
Development

No branches or pull requests

1 participant