Apache OpenOffice (AOO) Bugzilla – Issue 80654
Java locale is set based on UI language rather than locale setting
Last modified: 2016-10-20 17:58:01 UTC
Steps to reproduce: 1. Configure OpenOffice.org language settings (Tools/Options/Language Settings/Languages to User Interface: English (USA) Locale setting: German(Germany) 2. Restart OOo, Open the attached document testlocale.odt 3. Run the enclosed Beanshell macro Expected results: Locale country code: DE Decimal point: , Actual results: Locale country code: US Decimal point: . 4. Change the Language Settings like this User Interface: German(Germany) Locale setting: English (USA) 5. Restart OOo, load testlocale.odt 6. Run the macro Expected results: Locale country code: US Decimal point: . Actual results: Locale country code: DE Decimal point: , So clearly, the Locale setting of OOo's JVM depends on the UI language rather than the locale setting. It should be the other way around. This problem affects a Java extension of ours which uses the locale-specific decimal point. Users that use the English UI can't enter numbers properly. I'm seeing this under Linux with m221 and Windows with 2.2.0.
Created attachment 47513 [details] Beanshell macro to output JVM's locale setting
Confirming with 2.3.1 on WiNXP - as described.
"damjan" committed SVN revision 1765849 into trunk: #i80654# Java locale is set based on UI language rather than locale setting
Java's language is now the "User interface" language, while its country is the "Locale setting" country. The test document included here works as expected. Resolving fixed.
@damjan: Setting the keyword "release_blocker" doesn't mean anything. If you want to get this into 4.1.4 please set the flag "4.1.4_release_blocker?" to request this as release blocker - see on the right hand side . HTH