(main): Set console codepages to "ANSI".

This commit is contained in:
Jason Rumney 2007-06-25 12:35:17 +00:00
parent e66466a6fb
commit ad1597ceb8
2 changed files with 10 additions and 0 deletions

View 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.

View 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