Fix unix language setting fallback (long_locale is windows only!). This was preventing setting language when you did not have the relevant locale installed under Linux...

This commit is contained in:
Bastien Montagne
2012-10-20 08:33:54 +00:00
parent 9f8070d047
commit 494aa37f94

View File

@@ -257,7 +257,7 @@ void BLF_lang_set(const char *str)
if (locreturn == NULL) {
char language[65];
get_language(long_locale, default_lang, language, sizeof(language));
get_language(short_locale, default_lang, language, sizeof(language));
if (G.debug & G_DEBUG)
printf("Fallback to LANG=%s and LANGUAGE=%s\n", default_lang, language);