소스 검색

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
 	setlocale(LC_CTYPE, ""); // printf to current locale
 	_setmode(_fileno(stdout),_O_U8TEXT); // set output to utf8
+	_setmode(_fileno(stderr),_O_U8TEXT);
 #	endif
 }