Mercurial > emacs
comparison nt/cmdproxy.c @ 90979:988f1edc9674
Merge from emacs--devo--0
Patches applied:
* emacs--devo--0 (patch 803-805)
- Update from CVS
Revision: emacs@sv.gnu.org/emacs--unicode--0--patch-227
author | Miles Bader <miles@gnu.org> |
---|---|
date | Mon, 09 Jul 2007 08:00:55 +0000 |
parents | 95d0cdf160ea 69c77f0f3507 |
children | f55f9811f5d7 |
comparison
equal
deleted
inserted
replaced
90978:f866074aedc4 | 90979:988f1edc9674 |
---|---|
464 progname = strrchr (modname, '\\'); | 464 progname = strrchr (modname, '\\'); |
465 *progname = '\0'; | 465 *progname = '\0'; |
466 SetCurrentDirectory (modname); | 466 SetCurrentDirectory (modname); |
467 *progname = '\\'; | 467 *progname = '\\'; |
468 | 468 |
469 /* Due to problems with interaction between API functions that use "OEM" | |
470 codepage vs API functions that use the "ANSI" codepage, we need to | |
471 make things consistent by choosing one and sticking with it. */ | |
472 SetConsoleCP (GetACP()); | |
473 SetConsoleOutputCP (GetACP()); | |
474 | |
469 /* Although Emacs always sets argv[0] to an absolute pathname, we | 475 /* Although Emacs always sets argv[0] to an absolute pathname, we |
470 might get run in other ways as well, so convert argv[0] to an | 476 might get run in other ways as well, so convert argv[0] to an |
471 absolute name before comparing to the module name. Don't get | 477 absolute name before comparing to the module name. Don't get |
472 caught out by mixed short and long names. */ | 478 caught out by mixed short and long names. */ |
473 GetShortPathName (modname, modname, sizeof (modname)); | 479 GetShortPathName (modname, modname, sizeof (modname)); |