From f9411f30c4e955968e7abdecade3303b5e63bb4c Mon Sep 17 00:00:00 2001 From: KUDr Date: Fri, 27 Jul 2007 22:19:19 +0000 Subject: (svn r10711) -Fix [Win32]: take default language from current user's locale on Windows (In-) --- src/strings.cpp | 3 +++ 1 file changed, 3 insertions(+) (limited to 'src/strings.cpp') diff --git a/src/strings.cpp b/src/strings.cpp index 4ea1bc273..51dc504ad 100644 --- a/src/strings.cpp +++ b/src/strings.cpp @@ -1224,6 +1224,8 @@ bool ReadLanguagePack(int lang_index) return true; } +/* Win32 implementation in win32.cpp. */ +#ifndef WIN32 /** Determine the current charset based on the environment * First check some default values, after this one we passed ourselves * and if none exist return the value for $LANG @@ -1247,6 +1249,7 @@ const char *GetCurrentLocale(const char *param) return getenv("LANG"); } +#endif /* ifndef WIN32 */ static int CDECL LanguageCompareFunc(const void *a, const void *b) { -- cgit v1.2.3-54-g00ecf