diff options
author | Lilly Zenovka | 2009-10-19 09:02:41 +0200 |
---|---|---|
committer | Lilly Zenovka | 2009-10-19 09:02:41 +0200 |
commit | 428efd664d6629f8c590016c80d8a86181bbc2d4 (patch) | |
tree | df1d41ea90c2d47391454f093dd784a0e2f409ef /linden | |
parent | Second Life viewer sources 1.22.11 (diff) | |
download | meta-impy-428efd664d6629f8c590016c80d8a86181bbc2d4.zip meta-impy-428efd664d6629f8c590016c80d8a86181bbc2d4.tar.gz meta-impy-428efd664d6629f8c590016c80d8a86181bbc2d4.tar.bz2 meta-impy-428efd664d6629f8c590016c80d8a86181bbc2d4.tar.xz |
Fixes VWR-12161: avatar_skeleton.xml cannot be parsed
Diffstat (limited to 'linden')
-rw-r--r-- | linden/indra/llmedia/llmediaimplllmozlib.cpp | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/linden/indra/llmedia/llmediaimplllmozlib.cpp b/linden/indra/llmedia/llmediaimplllmozlib.cpp index 05d7220..93f4a64 100644 --- a/linden/indra/llmedia/llmediaimplllmozlib.cpp +++ b/linden/indra/llmedia/llmediaimplllmozlib.cpp | |||
@@ -49,9 +49,9 @@ | |||
49 | #include "GL/gl.h" | 49 | #include "GL/gl.h" |
50 | #endif | 50 | #endif |
51 | 51 | ||
52 | #if LL_LINUX | 52 | |
53 | #include <locale.h> | 53 | #include <locale.h> |
54 | #endif | 54 | |
55 | 55 | ||
56 | #include <iostream> | 56 | #include <iostream> |
57 | 57 | ||
@@ -89,23 +89,23 @@ LLMediaImplLLMozLib::LLMediaImplLLMozLib() : | |||
89 | // (static) super-initialization - called once at application startup | 89 | // (static) super-initialization - called once at application startup |
90 | bool LLMediaImplLLMozLib::startup( LLMediaManagerData* init_data ) | 90 | bool LLMediaImplLLMozLib::startup( LLMediaManagerData* init_data ) |
91 | { | 91 | { |
92 | #if LL_LINUX | 92 | |
93 | // Yuck, Mozilla's GTK callbacks play with the locale - push/pop | 93 | // Yuck, Mozilla's GTK callbacks play with the locale - push/pop |
94 | // the locale to protect it, as exotic/non-C locales | 94 | // the locale to protect it, as exotic/non-C locales |
95 | // causes our code lots of general critical weirdness | 95 | // causes our code lots of general critical weirdness |
96 | // and crashness. (SL-35450) | 96 | // and crashness. (SL-35450) |
97 | static std::string saved_locale; | 97 | static std::string saved_locale; |
98 | saved_locale = setlocale(LC_ALL, NULL); | 98 | saved_locale = setlocale(LC_ALL, NULL); |
99 | #endif // LL_LINUX | 99 | |
100 | 100 | ||
101 | bool result = LLMozLib::getInstance()->init( init_data->getBrowserApplicationDir(), | 101 | bool result = LLMozLib::getInstance()->init( init_data->getBrowserApplicationDir(), |
102 | init_data->getBrowserComponentDir(), | 102 | init_data->getBrowserComponentDir(), |
103 | init_data->getBrowserProfileDir(), | 103 | init_data->getBrowserProfileDir(), |
104 | init_data->getBrowserParentWindow() ); | 104 | init_data->getBrowserParentWindow() ); |
105 | 105 | ||
106 | #if LL_LINUX | 106 | |
107 | setlocale(LC_ALL, saved_locale.c_str() ); | 107 | setlocale(LC_ALL, saved_locale.c_str() ); |
108 | #endif // LL_LINUX | 108 | |
109 | 109 | ||
110 | return result; | 110 | return result; |
111 | } | 111 | } |