Browse Source

fix : don't use LC_ALL (affects numeric printing)

Nicolas Cannasse 8 năm trước cách đây
mục cha
commit
f6ab7fcde5
1 tập tin đã thay đổi với 1 bổ sung1 xóa
  1. 1 1
      src/main.c

+ 1 - 1
src/main.c

@@ -137,7 +137,7 @@ int main(int argc, pchar *argv[]) {
 	exit(1);
 #	endif
 #	ifdef HL_WIN
-	setlocale(LC_ALL,"");
+	setlocale(LC_CTYPE,""); // printf to current locale
 #	endif
 	hl_global_init(&ctx);
 	hl_sys_init((void**)argv,argc,file);