Commit 7387d2a0 authored by Jason Rumney's avatar Jason Rumney
Browse files

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

parent 8d2ff239
2007-06-25 Jason Rumney <jasonr@gnu.org>
* cmdproxy.c (main): Set console codepages to "ANSI".
2007-06-15 Jason Rumney <jasonr@gnu.org>
* emacs.manifest: New 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
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment