Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBastien Montagne <montagne29@wanadoo.fr>2012-10-20 12:33:54 +0400
committerBastien Montagne <montagne29@wanadoo.fr>2012-10-20 12:33:54 +0400
commit494aa37f94f4b60a32d9eb6ad8fc148d30d73add (patch)
tree707eb4e43a900d8c4735030ec287eee35f5f0115 /source/blender/blenfont
parent9f8070d047e1d8458db05fe88aef1a47a2328f14 (diff)
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...
Diffstat (limited to 'source/blender/blenfont')
-rw-r--r--source/blender/blenfont/intern/blf_lang.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/source/blender/blenfont/intern/blf_lang.c b/source/blender/blenfont/intern/blf_lang.c
index 284983b346a..d251542ead0 100644
--- a/source/blender/blenfont/intern/blf_lang.c
+++ b/source/blender/blenfont/intern/blf_lang.c
@@ -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);