OSDN Git Service

[Fix] 英語版ビルドエラー修正
authorshimitei <shimitei@gmail.com>
Sun, 16 May 2021 21:12:58 +0000 (06:12 +0900)
committershimitei <shimitei@gmail.com>
Sun, 16 May 2021 21:12:58 +0000 (06:12 +0900)
src/main-win/main-win-cfg-reader.cpp

index c1ccf62..67ed46d 100644 (file)
@@ -110,8 +110,10 @@ CfgData *CfgReader::read_sections(std::initializer_list<cfg_section> sections)
             GetPrivateProfileStringA(section.section_name, read_key, "", buf, MAIN_WIN_MAX_PATH, this->cfg_path.c_str());
             if (*buf != '\0') {
                 cfg_values *filenames = new cfg_values();
+#ifdef JP
                 // .cfg (UTF-8) to Shift-JIS
                 guess_convert_to_system_encoding(buf, MAIN_WIN_MAX_PATH);
+#endif
                 const int num = tokenize_whitespace(buf, SAMPLE_MAX, tokens);
                 for (int j = 0; j < num; j++) {
                     path_build(path, MAIN_WIN_MAX_PATH, dir, tokens[j]);