Use environment's default locale on Windows
#endif
#ifdef HL_WIN
+# include <locale.h>
typedef uchar pchar;
#define pprintf(str,file) uprintf(USTR(str),file)
#define pfopen(file,ext) _wfopen(file,USTR(ext))
@@ -134,6 +135,9 @@ int main(int argc, pchar *argv[]) {
# ifdef HL_64
fprintf(stderr,"HL/JIT is currently not supported when compiled to 64 bits, use make ARCH=32 to compile to 32 bits\n");
exit(1);
+# endif
+# ifdef HL_WIN
+ setlocale(LC_ALL,"");
# endif
hl_global_init(&ctx);
hl_sys_init((void**)argv,argc,file);
