Use UTF-8 in windows console

This commit is contained in:
zvon 2020-04-15 10:53:37 +02:00
parent a2d9504a09
commit ce08a0c650

View File

@ -255,7 +255,7 @@ int main
( int argc, char_t **argv ) {
#ifdef _WIN32
// set console to unicode
_setmode( _fileno( stdout ), _O_U16TEXT );
_setmode( _fileno( stdout ), _O_U8TEXT );
#else
if ( setlocale( LC_ALL, "" ) == NULL )
error( 1, errno, "%s", _( INVALID_LOCALE ).c_str() );