Stupid little fix, var == "str" bad.... !strcmp(var, "str") good...
authorKent Mein <mein@cs.umn.edu>
Tue, 20 Mar 2007 15:07:23 +0000 (15:07 +0000)
committerKent Mein <mein@cs.umn.edu>
Tue, 20 Mar 2007 15:07:23 +0000 (15:07 +0000)
Thanks DripStone,

Kent

source/blender/src/filesel.c

index 07a3174809ae1dc0f55217cdfd79fccfa9f458b9..aea0b8d49cf4ed8f3880b02d5fa891b5270b50e1 100644 (file)
@@ -976,11 +976,11 @@ static void print_line(SpaceFile *sfile, struct direntry *files, int x, int y)
 
                                lme = find_language(U.language);
 
-                               if (lme->code == "ja_JP") { /* japanese */
+                               if (!strcmp(lme->code, "ja_JP")) { /* japanese */
                                string_to_utf8(files->relname, utf_8, "Shift_JIS");
                                BIF_RasterPos((float)x, (float)y);      /* texture fonts */
                                BIF_DrawString(G.font, utf_8, (U.transopts & USER_TR_MENUS));
-                       } else if (lme->code == "zh_CN") { /* chinese */
+                       } else if (!strcmp(lme->code, "zh_CN")) { /* chinese */
                                string_to_utf8(files->relname, utf_8, "gb2312");
                                BIF_RasterPos((float)x, (float)y);      /* texture fonts */
                                BIF_DrawString(G.font, utf_8, (U.transopts & USER_TR_MENUS));