OSDN Git Service

Fix nesting of MULTIBYTE_FILENAME compiler switch
authorYohei Endo <yoheie@gmail.com>
Sat, 17 Oct 2015 23:40:37 +0000 (08:40 +0900)
committerYohei Endo <yoheie@gmail.com>
Sat, 17 Oct 2015 23:40:37 +0000 (08:40 +0900)
src/header.c

index 0993b49..17f4b6d 100644 (file)
@@ -278,6 +278,7 @@ convert_filename(name, len, size,
         to_code_save = CODE_CAP;
         to_code = CODE_SJIS;
     }
+#endif
 
     /* special case: if `name' has small lettter, not convert case. */
     if (from_code == CODE_SJIS && case_to == TO_LOWER) {
@@ -294,6 +295,7 @@ convert_filename(name, len, size,
         }
     }
 
+#ifdef MULTIBYTE_FILENAME
     if (from_code == CODE_SJIS && to_code == CODE_UTF8) {
         for (i = 0; i < len; i++) {
             if (SJIS_FIRST_P(name[i]) && SJIS_SECOND_P(name[i+1]))