Commit 90a0020f authored by Rémi Denis-Courmont's avatar Rémi Denis-Courmont

Set the proper output codepage for the console.

parent dab63839
...@@ -1824,6 +1824,10 @@ static void ShowConsole( vlc_bool_t b_dofile ) ...@@ -1824,6 +1824,10 @@ static void ShowConsole( vlc_bool_t b_dofile )
if( getenv( "PWD" ) && getenv( "PS1" ) ) return; /* cygwin shell */ if( getenv( "PWD" ) && getenv( "PS1" ) ) return; /* cygwin shell */
AllocConsole(); AllocConsole();
/* Use the ANSI code page (e.g. Windows-1252) as expected by the LibVLC
* Unicode/locale subsystem. By default, we have the obsolecent OEM code
* page (e.g. CP437 or CP850). */
SetConsoleOutputCP (GetACP ());
freopen( "CONOUT$", "w", stderr ); freopen( "CONOUT$", "w", stderr );
freopen( "CONIN$", "r", stdin ); freopen( "CONIN$", "r", stdin );
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment