konsoletyper / teavm

Compiles Java bytecode to JavaScript, WebAssembly and C
https://teavm.org
Apache License 2.0
2.55k stars 261 forks source link

Fix `toLowerCase`/`toUpperCase` on `Locale.ROOT` #862

Closed SquidDev closed 7 months ago

SquidDev commented 7 months ago

Locale.ROOT.toLanguageTag() currently evaluates to an empty string, rather than the expected "und", which errors when passed to toLocaleLowerCase.

konsoletyper commented 7 months ago

I believe, this case should also be covered in LocaleTest