summaryrefslogtreecommitdiff
path: root/core/src/xmake
diff options
context:
space:
mode:
authorruki <[email protected]>2019-07-10 00:31:43 +0800
committerruki <[email protected]>2019-07-09 21:10:23 +0800
commit568844957830f65aab43c2d309afff64772655c7 (patch)
tree1902a3b278bf66cc3c8c77a04885492d02eaf2a0 /core/src/xmake
parente1ce90c0f55538dd6e548ef5a5cee22fd8472d23 (diff)
update tbox to support ansi
Diffstat (limited to 'core/src/xmake')
-rw-r--r--core/src/xmake/io/open.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/core/src/xmake/io/open.c b/core/src/xmake/io/open.c
index d2eda4fe3..436617e00 100644
--- a/core/src/xmake/io/open.c
+++ b/core/src/xmake/io/open.c
@@ -135,6 +135,10 @@ static tb_size_t xm_io_file_detect_charset(tb_byte_t const** data_ptr, tb_long_t
break;
}
+#ifdef TB_CONFIG_OS_WINDOWS
+ charset = TB_CHARSET_TYPE_ANSI;
+#endif
+
} while (0);
*data_ptr = data;