Apache OpenOffice (AOO) Bugzilla – Issue 11794
OOO_STABLE_1_PORTS/X11+Aqua: tools needs to get system language from sal
Last modified: 2007-02-05 03:57:08 UTC
Currently, tools' GetSystemLanguage() function (tools/source/intntl/intnunx.cxx) gets the language from LANG, however on Mac OS X, this is incorrect behavior. The attached patch allows tools to call osl_getProcessLocale() for Mac OS X which should allow the correct language to be returned. Dan
Created attachment 4879 [details] cd SRC_ROOT/tools, patch -p0 < /path/to/patchfile Makes tools use osl_getProcessLocale() to return system langauge rather than LANG
Please approve for commit to PORTS.
Hi, Patch is completely MacOSX specific and thus approved. Kevin
I'm wondering why this needs to be conditional for Mac and can't be used for all arches? Does osl_getProcessLocale ever do a worse job than GetLangFromEnvironment? I would only go for an #ifdefed version if an unconditional patch is not possible, because the #ifdef'd code path is never tested by developers working on other architectures and places an additional burden on the port maintainers. Would it be possible to replace the existing function GetLangFromEnvironment with the osl_getProcessLocale implementation by Dan?
Martin, Can you comment on making this change for all platforms? Dan
approved.
Fixed in 103 GM and 1.1
Closing issue. James McKenzie