Commit ec2f579c authored by Hugh McMaster's avatar Hugh McMaster Committed by Alexandre Julliard

chcp: Print the active code page after successfully setting the new one.

parent 97950e01
...@@ -102,10 +102,11 @@ int __cdecl wmain(int argc, WCHAR *argv[]) ...@@ -102,10 +102,11 @@ int __cdecl wmain(int argc, WCHAR *argv[])
int codepage = _wtoi(argv[1]); int codepage = _wtoi(argv[1]);
int success = SetConsoleCP(codepage) && SetConsoleOutputCP(codepage); int success = SetConsoleCP(codepage) && SetConsoleOutputCP(codepage);
if (!success) if (success)
{ output_message(STRING_ACTIVE_CODE_PAGE, codepage);
else
output_message(STRING_INVALID_CODE_PAGE); output_message(STRING_INVALID_CODE_PAGE);
}
return !success; return !success;
} }
......
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