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

Locale.getDefault() and NSLocale.currentLocale() don't match if calendar is different from default #166

Open
Noisyfox opened this issue Mar 9, 2022 · 0 comments
Assignees
Milestone

Comments

@Noisyfox
Copy link
Member

Noisyfox commented Mar 9, 2022

If you change calendar settings in iOS Language & Region settings, then the NSLocale.currentLocale().localeIdentifier() will return a result such as "en_US@calendar=buddhist", then the Locale.forLanguageTag() will fail because it does not support this legacy tag syntax.

We need to convert it to the Unicode U extension syntax in order for Java to parse the local correctly.

@Noisyfox Noisyfox added this to the 1.9.1 milestone Mar 9, 2022
@Noisyfox Noisyfox self-assigned this Mar 9, 2022
@Noisyfox Noisyfox added this to To do in MOE Mar 28, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
Status: To do
MOE
To do
MOE 2.x
Awaiting triage
Development

No branches or pull requests

1 participant