فهرست منبع

most likely better for stderr as well

Nicolas Cannasse 6 سال پیش
والد
کامیت
fd08b34a21
1فایلهای تغییر یافته به همراه1 افزوده شده و 0 حذف شده
  1. 1 0
      src/std/sys.c

+ 1 - 0
src/std/sys.c

@@ -602,6 +602,7 @@ HL_PRIM void hl_sys_init(void **args, int nargs, void *hlfile) {
 #	ifdef HL_WIN
 #	ifdef HL_WIN
 	setlocale(LC_CTYPE, ""); // printf to current locale
 	setlocale(LC_CTYPE, ""); // printf to current locale
 	_setmode(_fileno(stdout),_O_U8TEXT); // set output to utf8
 	_setmode(_fileno(stdout),_O_U8TEXT); // set output to utf8
+	_setmode(_fileno(stderr),_O_U8TEXT);
 #	endif
 #	endif
 }
 }