]> git.eshelyaron.com Git - emacs.git/commitdiff
(main): Set console codepages to "ANSI".
authorJason Rumney <jasonr@gnu.org>
Mon, 25 Jun 2007 12:35:17 +0000 (12:35 +0000)
committerJason Rumney <jasonr@gnu.org>
Mon, 25 Jun 2007 12:35:17 +0000 (12:35 +0000)
nt/ChangeLog
nt/cmdproxy.c

index 92334d83ceec167a6108790ebfba934f12d2d214..65f3bc7b622e48d59fa352b27f6139b8c0fbebe2 100644 (file)
@@ -1,3 +1,7 @@
+2007-06-25  Jason Rumney  <jasonr@gnu.org>
+
+       * cmdproxy.c (main): Set console codepages to "ANSI".
+
 2007-06-20  Jason Rumney  <jasonr@gnu.org>
 
        * configure.bat: Complain if image libraries are missing.
index 4e4f1ef5c91e70c774f763bf99d9b2c633e2928d..d01e7f3972436dafc8dcd22d0f015f78a74c040f 100644 (file)
@@ -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