summaryrefslogtreecommitdiff
path: root/sal/osl/w32
diff options
context:
space:
mode:
authorStephan Bergmann <sbergman@redhat.com>2013-10-10 14:22:54 +0200
committerStephan Bergmann <sbergman@redhat.com>2013-10-10 14:22:54 +0200
commit668c627eb4e66208738d5acdecbcad106efa8252 (patch)
tree3a1bc6bf47823c21ec11204c9eb507887f068409 /sal/osl/w32
parent5c79177089cd4038276f63577affa7c86dcaab38 (diff)
Remove support for undocumented SOLAR_USER_RTL_TEXTENCODING env var
...introduced in 2001 with a Sun-internal bug ID as 3b1d10acc297db493b1f4e1999f6ba71f72db7f1 and 54007bb90c30469a5357c56056b8fdba3a233e24 "#84715# osl_getThreadTextEncoding first defaults to contents of environment variable SOLAR_USER_RTL_TEXTENCODING." Change-Id: I991b4777c27a24419bf066cf41b3c4545d0fa681
Diffstat (limited to 'sal/osl/w32')
-rw-r--r--sal/osl/w32/thread.c9
1 files changed, 1 insertions, 8 deletions
diff --git a/sal/osl/w32/thread.c b/sal/osl/w32/thread.c
index d4dbc7f8f9f9..0bb71722694f 100644
--- a/sal/osl/w32/thread.c
+++ b/sal/osl/w32/thread.c
@@ -576,16 +576,9 @@ rtl_TextEncoding SAL_CALL osl_getThreadTextEncoding(void)
_encoding = LOWORD(dwEncoding);
gotACP = HIWORD(dwEncoding);
-
if ( !gotACP )
{
- char *pszEncoding;
-
- if ( NULL != (pszEncoding = getenv( "SOLAR_USER_RTL_TEXTENCODING" )) )
- _encoding = (rtl_TextEncoding)atoi(pszEncoding);
- else
- _encoding = rtl_getTextEncodingFromWindowsCodePage( GetACP() );
-
+ _encoding = rtl_getTextEncodingFromWindowsCodePage( GetACP() );
TlsSetValue( g_dwTLSTextEncodingIndex, (LPVOID)(DWORD_PTR)MAKELONG( _encoding, TRUE ) );
}