2
0
Эх сурвалжийг харах

most likely better for stderr as well

Nicolas Cannasse 6 жил өмнө
parent
commit
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
 	setlocale(LC_CTYPE, ""); // printf to current locale
 	_setmode(_fileno(stdout),_O_U8TEXT); // set output to utf8
+	_setmode(_fileno(stderr),_O_U8TEXT);
 #	endif
 }