From mboxrd@z Thu Jan 1 00:00:00 1970 Path: main.gmane.org!not-for-mail From: Eli Zaretskii Newsgroups: gmane.emacs.bugs Subject: Re: Latin1 language environment breaks Cygwin shell buffer Date: Sun, 31 Mar 2002 08:08:58 +0200 (IST) Sender: bug-gnu-emacs-admin@gnu.org Message-ID: References: <873cyhsly5.fsf@blarg.net> NNTP-Posting-Host: localhost.gmane.org Mime-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII X-Trace: main.gmane.org 1017555153 8834 127.0.0.1 (31 Mar 2002 06:12:33 GMT) X-Complaints-To: usenet@main.gmane.org NNTP-Posting-Date: Sun, 31 Mar 2002 06:12:33 +0000 (UTC) Cc: bug-gnu-emacs@gnu.org Original-Received: from fencepost.gnu.org ([199.232.76.164]) by main.gmane.org with esmtp (Exim 3.33 #1 (Debian)) id 16rYZt-0002IN-00 for ; Sun, 31 Mar 2002 08:12:33 +0200 Original-Received: from localhost ([127.0.0.1] helo=fencepost.gnu.org) by fencepost.gnu.org with esmtp (Exim 3.34 #1 (Debian)) id 16rYZn-00053S-00; Sun, 31 Mar 2002 01:12:27 -0500 Original-Received: from is.elta.co.il ([199.203.121.2]) by fencepost.gnu.org with esmtp (Exim 3.34 #1 (Debian)) id 16rYXX-0004oQ-00 for ; Sun, 31 Mar 2002 01:10:07 -0500 Original-Received: from is (is [199.203.121.2]) by is.elta.co.il (8.9.3/8.8.8) with SMTP id IAA14682; Sun, 31 Mar 2002 08:08:58 +0200 (IST) X-Sender: eliz@is Original-To: Eric Hanchrow In-Reply-To: <873cyhsly5.fsf@blarg.net> Errors-To: bug-gnu-emacs-admin@gnu.org X-BeenThere: bug-gnu-emacs@gnu.org X-Mailman-Version: 2.0.8 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: Bug reports for GNU Emacs, the Swiss army knife of text editors List-Unsubscribe: , List-Archive: Xref: main.gmane.org gmane.emacs.bugs:321 X-Report-Spam: http://spam.gmane.org/gmane.emacs.bugs:321 [Please keep the mailing list on the CC.] On 30 Mar 2002, Eric Hanchrow wrote: > > > (setq shell-file-name "c:/cygwin/bin/bash") > > (setq explicit-shell-file-name "c:/cygwin/bin/bash") > > ... Actually, I don't recommend setting these variables at all in > Emacs, but instead set up PATH and SHELL variables _outside_ Emacs > so that the right shell is found. > > I wanted to do that, since it seems cleaner than setting Emacs > variables, but the `runemacs' program appears to unconditionally set > the SHELL variable to cmdproxy.exe. (And I prefer `runemacs' to plain > `emacs' since the former doesn't open a console window, which is > annoying.) AFAIK, `emacs' does not open a console window for quite some time. When did you last try that, and how did you invoke Emacs when you did? > Also, what about your settings of process-coding-system? What is > it in both language environments you used > > Well, I didn't set it explicitly, as you can see, and I don't know how > to find out what coding system is in effect. Can you tell me which > command to type to find out? I believe the doc string of the `shell' command explains this. > does it help to use set-buffer-process-coding-system in the shell > buffer so that Emacs decodes Bash output with undecided-dos? > > No, that doesn't help. Then it's probably not something related to CR characters. > You might wish to experiment with mounting your filesystems in binary > (instead of text) mode. > > I'm afraid they already are mounted in binary mode. Then how come `od' shows \r characters in the output of `echo'? Something strange is going on here, and you probably need a Cygwin guru to help you out. I suggest to ask on the Cygwin mailing list.