On 04/12/2008 20:26, Uwe Stöhr wrote:
 > Would it be an option if we set LANG instead only on Windows?

Yes, but set LANG only for the current user. As far as I can see this is
the only way to get it working on all Windows setups.

LANG would be set for the currently running lyx process so that would be local. Try this patch for branch and see if it works.

Abdel.
Index: LyX.cpp
===================================================================
--- LyX.cpp     (revision 27779)
+++ LyX.cpp     (working copy)
@@ -238,8 +238,13 @@
                return;
        Language const * language = languages.getLanguage(lyxrc.gui_language);
        if (language) {
-               LYXERR(Debug::LOCALE, "Setting LANGUAGE to " << 
language->code());
-               if (!setEnv("LANGUAGE", language->code()))
+#ifdef _MSC_VER
+               string const lang_var = "LANG";
+#else
+               string const lang_var = "LANGUAGE";
+#endif
+               LYXERR(Debug::LOCALE, "Setting " << lang_var << " to " << 
language->code());
+               if (!setEnv(lang_var, language->code()))
                        LYXERR(Debug::LOCALE, "\t... failed!");
        }
        LYXERR(Debug::LOCALE, "Setting LC_ALL to en_US");

Reply via email to