▲ | JuniperMesos 14 hours ago | |||||||||||||||||||||||||||||||||||||
> However, unlike TFA and other comments, I don't suggest `Locale.US`. That's a little too US-centric. The canonical locale is in fact `Locale.ROOT`. Granted, in practice it's equivalent, but I find it a little bit more sensible. I have no idea what `Locale.ROOT` refers to, and I'd be worried that it's accidentally the same as the system locale or something, exactly the sort of thing that will unexpectedly change when a Turkish-speaker uses a computer or what have you. | ||||||||||||||||||||||||||||||||||||||
▲ | layer8 13 hours ago | parent | next [-] | |||||||||||||||||||||||||||||||||||||
> I'd be worried that it's accidentally the same as the system locale or something The API docs clearly specify that Locale.ROOT “is regarded as the base locale of all locales, and is used as the language/country neutral locale for the locale sensitive operations.” | ||||||||||||||||||||||||||||||||||||||
▲ | troad 11 hours ago | parent | prev | next [-] | |||||||||||||||||||||||||||||||||||||
> However, unlike TFA and other comments, I don't suggest `Locale.US`. That's a little too US-centric. The canonical locale is in fact `Locale.ROOT`. Granted, in practice it's equivalent, but I find it a little bit more sensible. Isn't it kind of strange to say that Locale.US is too US centric, and therefore we'll invent a new, fictitious locale, the contents of which is all the US defaults, but which we'll call "the base locale of all locales"? That somehow seems even more US centric to me than just saying Locale.US. Setting the locale as Locale.US is at least comprehensible at a glance. | ||||||||||||||||||||||||||||||||||||||
| ||||||||||||||||||||||||||||||||||||||
▲ | kevin_thibedeau 13 hours ago | parent | prev [-] | |||||||||||||||||||||||||||||||||||||
It is a programming language agnostic equivalent of POSIX C locale with Unicode enhancement. |