# HG changeset patch # User Jason Rumney # Date 1182774905 0 # Node ID 69c77f0f3507a6f21d5c8c047fe26411e255701e # Parent feafa882a0cf1fc4761dfaede18274d3fb525d5a (main): Set console codepages to "ANSI". diff -r feafa882a0cf -r 69c77f0f3507 nt/cmdproxy.c --- a/nt/cmdproxy.c Mon Jun 25 05:09:05 2007 +0000 +++ b/nt/cmdproxy.c Mon Jun 25 12:35:05 2007 +0000 @@ -466,6 +466,12 @@ SetCurrentDirectory (modname); *progname = '\\'; + /* Due to problems with interaction between API functions that use "OEM" + codepage vs API functions that use the "ANSI" codepage, we need to + make things consistent by choosing one and sticking with it. */ + SetConsoleCP (GetACP()); + SetConsoleOutputCP (GetACP()); + /* Although Emacs always sets argv[0] to an absolute pathname, we might get run in other ways as well, so convert argv[0] to an absolute name before comparing to the module name. Don't get