summaryrefslogtreecommitdiff
path: root/sal/osl
diff options
context:
space:
mode:
authorTor Lillqvist <tml@collabora.com>2018-11-10 01:16:22 +0200
committerTor Lillqvist <tml@collabora.com>2018-11-10 01:18:58 +0200
commitf1801432abaaa6c6137d62319d855b6a3599e182 (patch)
treefb911366cf1f099cd84b4ccec138a84181f4876e /sal/osl
parent760f9867f236624c0082d5b8c8578800cb0802e6 (diff)
Don't bother setting LC_ALL, LC_CTYPE, and LANG on iOS
An iOS app might itself, for testing and debugging purposes, look for LANG in the environment (potentially passed to it by Xcode; the OS does not set such an environment variable). It is confusing if that then gets set during the execution of core code back to a device's default. Change-Id: I9dcf44090aed84b55fd4240bda2562026cd8dacb
Diffstat (limited to 'sal/osl')
-rw-r--r--sal/osl/unx/nlsupport.cxx2
1 files changed, 2 insertions, 0 deletions
diff --git a/sal/osl/unx/nlsupport.cxx b/sal/osl/unx/nlsupport.cxx
index 01225e631d82..03a7c1c550ca 100644
--- a/sal/osl/unx/nlsupport.cxx
+++ b/sal/osl/unx/nlsupport.cxx
@@ -836,9 +836,11 @@ void imp_getProcessLocale( rtl_Locale ** ppLocale )
/* return the locale */
*ppLocale = parse_locale( locale.getStr() );
+#ifndef IOS
setenv( "LC_ALL", locale.getStr(), 1);
setenv("LC_CTYPE", locale.getStr(), 1 );
setenv("LANG", locale.getStr(), 1 );
+#endif
}
#else
/*****************************************************************************