OSDN Git Service

prefで日本語定数が正しく評価されず, $PLAYERとの比較がうまくいかないバ
authornothere <nothere@0568b783-4c39-0410-ac80-bf13821ea2a2>
Tue, 10 Aug 2004 17:32:11 +0000 (17:32 +0000)
committernothere <nothere@0568b783-4c39-0410-ac80-bf13821ea2a2>
Tue, 10 Aug 2004 17:32:11 +0000 (17:32 +0000)
グを修正.

src/files.c

index f3d990b..53c71ca 100644 (file)
@@ -955,8 +955,15 @@ cptr process_pref_file_expr(cptr *sp, char *fp)
                int i;
 
                /* Accept all printables except spaces and brackets */
-               for (i = 0; isprint(*s) && !my_strchr(" []", *s); i++)
+#ifdef JP
+               for (i = 0; (iskanji(*s) || isprint(*s)) && !my_strchr(" []", *s); i++)
+               {
+                       if (iskanji(*s)) b[i++] = *s++;
                        b[i] = *s++;
+               }
+#else
+               for (i = 0; isprint(*s) && !my_strchr(" []", *s); i++) b[i] = *s++;
+#endif
 
                /* Terminate */
                b[i] = '\0';