From: Jason Rumney Date: Mon, 25 Jun 2007 12:35:17 +0000 (+0000) Subject: (main): Set console codepages to "ANSI". X-Git-Tag: emacs-pretest-23.0.90~12119 X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=ad1597ceb85a84c783220e6cdf26b02672799074;p=emacs.git (main): Set console codepages to "ANSI". --- diff --git a/nt/ChangeLog b/nt/ChangeLog index 92334d83cee..65f3bc7b622 100644 --- a/nt/ChangeLog +++ b/nt/ChangeLog @@ -1,3 +1,7 @@ +2007-06-25 Jason Rumney + + * cmdproxy.c (main): Set console codepages to "ANSI". + 2007-06-20 Jason Rumney * configure.bat: Complain if image libraries are missing. diff --git a/nt/cmdproxy.c b/nt/cmdproxy.c index 4e4f1ef5c91..d01e7f39724 100644 --- a/nt/cmdproxy.c +++ b/nt/cmdproxy.c @@ -466,6 +466,12 @@ main (int argc, char ** argv) 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