From: Jason Rumney <jasonr@gnu.org>
To: "Günter Rote" <rote@inf.fu-berlin.de>
Cc: bug-gnu-emacs@gnu.org
Subject: Re: cmdproxy.exe garbles special characters in environment variables
Date: Mon, 25 Jun 2007 13:40:58 +0100 [thread overview]
Message-ID: <467FB7DA.6070700@gnu.org> (raw)
In-Reply-To: <467ED402.3090804@inf.fu-berlin.de>
Günter Rote wrote:
> I will try to compile a patched version of cmdproxy.exe that works for
> me. (It may mess up those DOS programs that are mentioned in cmdproxy.c ]
Please try the following patch. It seems to work in the limited testing
I have done, but I have not tried non-ASCII characters in the username,
only in dummy test environment variables.
Index: cmdproxy.c
===================================================================
RCS file: /sources/emacs/emacs/nt/cmdproxy.c,v
retrieving revision 1.17
retrieving revision 1.17.2.1
diff -c -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,471 ****
--- 466,477 ----
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
prev parent reply other threads:[~2007-06-25 12:40 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2007-06-24 20:28 cmdproxy.exe garbles special characters in environment variables Günter Rote
2007-06-25 8:57 ` Jason Rumney
2007-06-25 12:40 ` Jason Rumney [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=467FB7DA.6070700@gnu.org \
--to=jasonr@gnu.org \
--cc=bug-gnu-emacs@gnu.org \
--cc=rote@inf.fu-berlin.de \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this external index
https://git.savannah.gnu.org/cgit/emacs.git
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.