aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/linden/indra/llmedia
diff options
context:
space:
mode:
authorMcCabe Maxsted2009-11-08 13:23:54 -0700
committerMcCabe Maxsted2009-11-08 13:23:54 -0700
commitd9ecd6fde8f588d8be9a54a3ebc301bab1e99754 (patch)
tree1f595f7577a5134b29e4933d1ce6b4b52e9c1f57 /linden/indra/llmedia
parentMerged working branch of 1.2 into LL 1.23 merge (diff)
parentChanged version to 1.20 in other files (diff)
downloadmeta-impy-d9ecd6fde8f588d8be9a54a3ebc301bab1e99754.zip
meta-impy-d9ecd6fde8f588d8be9a54a3ebc301bab1e99754.tar.gz
meta-impy-d9ecd6fde8f588d8be9a54a3ebc301bab1e99754.tar.bz2
meta-impy-d9ecd6fde8f588d8be9a54a3ebc301bab1e99754.tar.xz
Merged almost-final version of Imprudence 1.2 into 1.3
Diffstat (limited to 'linden/indra/llmedia')
-rw-r--r--linden/indra/llmedia/llmediaimplllmozlib.cpp14
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
91bool LLMediaImplLLMozLib::startup( LLMediaManagerData* init_data ) 91bool 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}