emacs-diffs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Emacs-diffs] Changes to emacs/nt/cmdproxy.c,v [EMACS_22_BASE]


From: Jason Rumney
Subject: [Emacs-diffs] Changes to emacs/nt/cmdproxy.c,v [EMACS_22_BASE]
Date: Mon, 25 Jun 2007 12:30:28 +0000

CVSROOT:        /sources/emacs
Module name:    emacs
Branch:         EMACS_22_BASE
Changes by:     Jason Rumney <jasonr>   07/06/25 12:30:28

Index: cmdproxy.c
===================================================================
RCS file: /sources/emacs/emacs/nt/cmdproxy.c,v
retrieving revision 1.17
retrieving revision 1.17.2.1
diff -u -b -r1.17 -r1.17.2.1
--- cmdproxy.c  16 Jan 2007 01:41:57 -0000      1.17
+++ cmdproxy.c  25 Jun 2007 12:30:27 -0000      1.17.2.1
@@ -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




reply via email to

[Prev in Thread] Current Thread [Next in Thread]