From 6d126d0accfe1fe1020b9029016818451db49853 Mon Sep 17 00:00:00 2001 From: staviq Date: Fri, 20 Oct 2023 21:26:07 +0200 Subject: [PATCH] fix win --- common/console.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/common/console.cpp b/common/console.cpp index ec192ae63..a2f201ee3 100644 --- a/common/console.cpp +++ b/common/console.cpp @@ -53,6 +53,7 @@ namespace console { static termios initial_state; #endif +#if !defined(_WIN32) static bool locale_isvalid( const char * l ) { return !(l == nullptr || l[0] == '\0' || (strcasestr(l, "utf-8") == nullptr && strcasestr(l, "utf8") == nullptr)); @@ -65,6 +66,7 @@ namespace console { return !strcmp( l, locale ); } +#endif // // Init and cleanup