From mboxrd@z Thu Jan 1 00:00:00 1970 Path: main.gmane.org!not-for-mail From: Jason Rumney Newsgroups: gmane.emacs.bugs Subject: Re: Latin1 language environment breaks Cygwin shell buffer Date: 06 Apr 2002 20:11:04 +0100 Sender: bug-gnu-emacs-admin@gnu.org Message-ID: References: <877knurp7c.fsf@blarg.net> <874rip963y.fsf@blarg.net> <9743-Sat06Apr2002202751+0300-eliz@is.elta.co.il> <3791-Sat06Apr2002213932+0300-eliz@is.elta.co.il> NNTP-Posting-Host: localhost.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: main.gmane.org 1018120871 19416 127.0.0.1 (6 Apr 2002 19:21:11 GMT) X-Complaints-To: usenet@main.gmane.org NNTP-Posting-Date: Sat, 6 Apr 2002 19:21:11 +0000 (UTC) Cc: bug-gnu-emacs@gnu.org, Harald.Maier.BW@t-online.de, offby1@blarg.net Original-Received: from fencepost.gnu.org ([199.232.76.164]) by main.gmane.org with esmtp (Exim 3.33 #1 (Debian)) id 16tvkM-000533-00 for ; Sat, 06 Apr 2002 21:21:10 +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 16tvkH-0000fB-00; Sat, 06 Apr 2002 14:21:05 -0500 Original-Received: from rhenium.btinternet.com ([194.73.73.93]) by fencepost.gnu.org with esmtp (Exim 3.34 #1 (Debian)) id 16tviN-0000a4-00 for ; Sat, 06 Apr 2002 14:19:07 -0500 Original-Received: from host62-7-114-195.in-addr.btopenworld.com ([62.7.114.195] helo=nyaumo.btinternet.com) by rhenium.btinternet.com with esmtp (Exim 3.22 #8) id 16tviI-0002FB-00; Sat, 06 Apr 2002 20:19:02 +0100 Original-Received: from nyaumo.btinternet.com (localhost [127.0.0.1]) by nyaumo.btinternet.com (8.9.3/8.9.3/SuSE Linux 8.9.3-0.1) with ESMTP id UAA01944; Sat, 6 Apr 2002 20:11:04 +0100 Original-To: Eli Zaretskii In-Reply-To: <3791-Sat06Apr2002213932+0300-eliz@is.elta.co.il> Original-Lines: 28 User-Agent: Gnus/5.09 (Gnus v5.9.0) Emacs/21.2.50 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:463 X-Report-Spam: http://spam.gmane.org/gmane.emacs.bugs:463 "Eli Zaretskii" writes: > > From: Jason Rumney > > Date: 06 Apr 2002 18:43:03 +0100 > > > > "Eli Zaretskii" writes: > > > > > I suspect that the problem is with the EOL conversion in process I/O: > > > where w32-fns.el carefully sets up the EOL conversions as apropriate > > > for both input and output, the language environment leaves the EOL > > > conversion undecided. > > > > It only leaves the EOL conversion undecided when moving from > > "Default" to "Latin-1", which is the case that works. In the case > > of moving from "German" to "Latin-1", it sets both to iso-latin-1-dos. > > I see in w32-fns that it sometimes sets the encode part of > default-process-coding-system to *-unix. Wasn't the problem in the > OP's case the DOS encoding of command lines sent to the shell? Yes, that is the code that sets it initially at startup. But my own testing shows that leaving the encode eol as undecided actually works (I'm not sure why, I'd expect it default to -dos on Windows), and the problemetic case is caused by something, somewhere, explicitly setting it to -dos. -- Jason Rumney