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
path: root/source
diff options
context:
space:
mode:
Diffstat (limited to 'source')
-rw-r--r--source/blender/blenfont/intern/blf_lang.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/source/blender/blenfont/intern/blf_lang.c b/source/blender/blenfont/intern/blf_lang.c
index 430780b19a0..71e4fba94f6 100644
--- a/source/blender/blenfont/intern/blf_lang.c
+++ b/source/blender/blenfont/intern/blf_lang.c
@@ -189,6 +189,12 @@ void BLF_lang_set(const char *str)
if (locreturn == NULL) {
printf("Could not change locale to %s nor %s\n", short_locale, short_locale_utf8);
+
+ /* fallback to default settings */
+ locreturn= setlocale(LC_ALL, "");
+ BLI_setenv("LANG", default_locale);
+ BLI_setenv("LANGUAGE", default_locale);
+
ok= 0;
}