(main): Set console codepages to "ANSI".
This commit is contained in:
parent
e66466a6fb
commit
ad1597ceb8
2 changed files with 10 additions and 0 deletions
|
@ -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.
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Add table
Reference in a new issue