From abc14336d40bc20169fb34761b0d182a6645693f Mon Sep 17 00:00:00 2001 From: Timerix22 Date: Fri, 19 May 2023 23:51:59 +0600 Subject: [PATCH] setlocale --- src/main.c | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/src/main.c b/src/main.c index cfc3092..1792286 100644 --- a/src/main.c +++ b/src/main.c @@ -20,13 +20,11 @@ Maybe tryReadFile(char* filePath){ i32 main(const i32 argc, const char* const* argv){ #if _WIN32 || _WIN64 if(!SetConsoleOutputCP(CP_UTF8)){ - kprintf("\e[91mcan't set console codepage to utf8"); - return 1; + kprintf("\e[93mcan't set console codepage to utf8"); } #endif if(setlocale(LC_ALL, "C.UTF8")==0){ // doesn't work on windows - kprintf("\e[91msetlocale failed! (%i)\n", errno); - return 1; + kprintf("\e[93msetlocale failed! (%i)\n", errno); } // term_cursorHide(true);