Kaydet (Commit) f1801432 authored tarafından Tor Lillqvist's avatar Tor Lillqvist

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
üst 760f9867
...@@ -836,9 +836,11 @@ void imp_getProcessLocale( rtl_Locale ** ppLocale ) ...@@ -836,9 +836,11 @@ void imp_getProcessLocale( rtl_Locale ** ppLocale )
/* return the locale */ /* return the locale */
*ppLocale = parse_locale( locale.getStr() ); *ppLocale = parse_locale( locale.getStr() );
#ifndef IOS
setenv( "LC_ALL", locale.getStr(), 1); setenv( "LC_ALL", locale.getStr(), 1);
setenv("LC_CTYPE", locale.getStr(), 1 ); setenv("LC_CTYPE", locale.getStr(), 1 );
setenv("LANG", locale.getStr(), 1 ); setenv("LANG", locale.getStr(), 1 );
#endif
} }
#else #else
/***************************************************************************** /*****************************************************************************
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment