This commit is contained in:
staviq 2023-10-20 21:26:07 +02:00
parent 226ed5f291
commit 6d126d0acc

View file

@ -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