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

ICU4J LikelySubtags reveals strange behavior in ICU4J #196

Closed
sven-oly opened this issue Mar 12, 2024 · 2 comments
Closed

ICU4J LikelySubtags reveals strange behavior in ICU4J #196

sven-oly opened this issue Mar 12, 2024 · 2 comments

Comments

@sven-oly
Copy link
Collaborator

ICU4J Locale apparently does not accept "_" as the separator in locale tags, e.g.,
{"test_type": "likely_subtags", "label":"0004","locale":"af_AQ","option":"minimize"}
resulting in "und" as the minimized locale.

However, this test works, giving "af-AQ" as expected:
{"test_type": "likely_subtags", "label":"0004","locale":"af-AQ","option":"minimize"}

Something seems wrong with ICU4J's handling of many locales with Likely Subtags.

@sffc
Copy link
Member

sffc commented Mar 12, 2024

I think testdata gen should normalize these locales into BCP-47 (with hyphens). It is not interesting to test syntax parsing in the likely subtags test.

@echeran
Copy link
Collaborator

echeran commented Mar 19, 2024

Superseded by #199

@echeran echeran closed this as not planned Won't fix, can't repro, duplicate, stale Mar 19, 2024
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

No branches or pull requests

3 participants