Explorar o código

most likely better for stderr as well

Nicolas Cannasse %!s(int64=6) %!d(string=hai) anos
pai
achega
fd08b34a21
Modificáronse 1 ficheiros con 1 adicións e 0 borrados
  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
 }