diff options
Diffstat (limited to 'linden/indra/llmedia')
-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 7222d19..5b4b02e 100644 --- a/linden/indra/llmedia/llmediaimplllmozlib.cpp +++ b/linden/indra/llmedia/llmediaimplllmozlib.cpp | |||
@@ -50,9 +50,9 @@ | |||
50 | #include "GL/gl.h" | 50 | #include "GL/gl.h" |
51 | #endif | 51 | #endif |
52 | 52 | ||
53 | #if defined(LL_LINUX) || defined(WIN32) | 53 | |
54 | #include <locale.h> | 54 | #include <locale.h> |
55 | #endif // defined(LL_LINUX) || defined(WIN32) | 55 | |
56 | 56 | ||
57 | #include <iostream> | 57 | #include <iostream> |
58 | 58 | ||
@@ -90,23 +90,23 @@ LLMediaImplLLMozLib::LLMediaImplLLMozLib() : | |||
90 | // (static) super-initialization - called once at application startup | 90 | // (static) super-initialization - called once at application startup |
91 | bool LLMediaImplLLMozLib::startup( LLMediaManagerData* init_data ) | 91 | bool LLMediaImplLLMozLib::startup( LLMediaManagerData* init_data ) |
92 | { | 92 | { |
93 | #if defined(LL_LINUX) || defined(WIN32) | 93 | |
94 | // Yuck, Mozilla's GTK callbacks play with the locale - push/pop | 94 | // Yuck, Mozilla's GTK callbacks play with the locale - push/pop |
95 | // the locale to protect it, as exotic/non-C locales | 95 | // the locale to protect it, as exotic/non-C locales |
96 | // causes our code lots of general critical weirdness | 96 | // causes our code lots of general critical weirdness |
97 | // and crashness. (SL-35450) | 97 | // and crashness. (SL-35450) |
98 | static std::string saved_locale; | 98 | static std::string saved_locale; |
99 | saved_locale = setlocale(LC_ALL, NULL); | 99 | saved_locale = setlocale(LC_ALL, NULL); |
100 | #endif // defined(LL_LINUX) || defined(WIN32) | 100 | |
101 | 101 | ||
102 | bool result = LLMozLib::getInstance()->init( init_data->getBrowserApplicationDir(), | 102 | bool result = LLMozLib::getInstance()->init( init_data->getBrowserApplicationDir(), |
103 | init_data->getBrowserComponentDir(), | 103 | init_data->getBrowserComponentDir(), |
104 | init_data->getBrowserProfileDir(), | 104 | init_data->getBrowserProfileDir(), |
105 | init_data->getBrowserParentWindow() ); | 105 | init_data->getBrowserParentWindow() ); |
106 | 106 | ||
107 | #if defined(LL_LINUX) || defined(WIN32) | 107 | |
108 | setlocale(LC_ALL, saved_locale.c_str() ); | 108 | setlocale(LC_ALL, saved_locale.c_str() ); |
109 | #endif // defined(LL_LINUX) || defined(WIN32) | 109 | |
110 | 110 | ||
111 | return result; | 111 | return result; |
112 | } | 112 | } |