chcp: Return the active code page when called without arguments.

Signed-off-by: Erich E. Hoover <erich.e.hoover@gmail.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
This commit is contained in:
Erich E. Hoover 2019-11-07 15:15:09 -07:00 committed by Alexandre Julliard
parent 3a01d356f9
commit 658d2e6133
1 changed files with 8 additions and 0 deletions

View File

@ -18,12 +18,20 @@
#include "wine/debug.h"
#include "wincon.h"
WINE_DEFAULT_DEBUG_CHANNEL(chcp);
int __cdecl wmain(int argc, WCHAR *argv[])
{
int i;
if (argc == 1)
{
printf("Active code page: %d\n", GetConsoleCP());
return 0;
}
WINE_FIXME("stub:");
for (i = 0; i < argc; i++)
WINE_FIXME(" %s", wine_dbgstr_w(argv[i]));