Attempt to fix #28709: change language to simplified Chinese: sequencer -> add image...
authorSergey Sharybin <sergey.vfx@gmail.com>
Wed, 21 Sep 2011 15:07:19 +0000 (15:07 +0000)
committerSergey Sharybin <sergey.vfx@gmail.com>
Wed, 21 Sep 2011 15:07:19 +0000 (15:07 +0000)
Crash was caused by sprintf which tried to parse bytes sequence belongs to chinese letter.
Using codepage 1252 for LC_ALL seems to fix this issue, but needs further testing.

source/blender/blenfont/intern/blf_lang.c

index c0163be4980342e4647a63ec77cedaf433d7bffc..b0b06bf059be362f0d8582eaac0a5a7d98930f32 100644 (file)
@@ -81,8 +81,8 @@ static const char *locales[] = {
        "catalan", "ca_AD",
        "czech", "cs_CZ",
        "ptb", "pt_BR",
-       "chs", "zh_CN",
-       "cht", "zh_TW",
+       "Chinese (Simplified)_China.1252", "zh_CN",
+       "Chinese (Traditional)_China.1252", "zh_TW",
        "russian", "ru_RU",
        "croatian", "hr_HR",
        "serbian", "sr_RS",