chcp: Print the active code page after successfully setting the new one.
Signed-off-by: Hugh McMaster <hugh.mcmaster@outlook.com> Signed-off-by: Alexandre Julliard <julliard@winehq.org>
This commit is contained in:
parent
97950e014a
commit
ec2f579c71
|
@ -102,10 +102,11 @@ int __cdecl wmain(int argc, WCHAR *argv[])
|
|||
int codepage = _wtoi(argv[1]);
|
||||
int success = SetConsoleCP(codepage) && SetConsoleOutputCP(codepage);
|
||||
|
||||
if (!success)
|
||||
{
|
||||
if (success)
|
||||
output_message(STRING_ACTIVE_CODE_PAGE, codepage);
|
||||
else
|
||||
output_message(STRING_INVALID_CODE_PAGE);
|
||||
}
|
||||
|
||||
return !success;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue