Opened 4 years ago
Last modified 4 years ago
#20805 new enhancement
Replace Locale.ENGLISH by Locale.ROOT?
Reported by: | simon04 | Owned by: | team |
---|---|---|---|
Priority: | normal | Milestone: | |
Component: | Core | Version: | |
Keywords: | locale | Cc: | GerdP, mdk |
Description
simon04 in ticket:20784#comment:32:
Java also provides
Locale.ROOT
– https://docs.oracle.com/en/java/javase/11/docs/api/java.base/java/util/Locale.html#ROOT
This is regarded as the base locale of all locales, and is used as the language/country neutral locale for the locale sensitive operations.
mdk in ticket:20785#comment:7:
In r17811 (see #20784) similar problems are solved with
Locale.ENGLISH
. Wouldn't it be better to use always the same solution (Locale.ROOT
)?
Currently, we have 147 occurrences of Locale.ENGLISH
In some places it seems reasonable/needed to use Locale.ENGLISH, so this requires lots of thinking and understanding of the reason why a Locale was used. I fear it can break something for no good reason.