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 17:35:00 +0100 Sender: bug-gnu-emacs-admin@gnu.org Message-ID: References: <877knurp7c.fsf@blarg.net> <874rip963y.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 1018110970 10296 127.0.0.1 (6 Apr 2002 16:36:10 GMT) X-Complaints-To: usenet@main.gmane.org NNTP-Posting-Date: Sat, 6 Apr 2002 16:36:10 +0000 (UTC) Cc: Harald.Maier.BW@t-online.de, Eric Hanchrow Original-Received: from fencepost.gnu.org ([199.232.76.164]) by main.gmane.org with esmtp (Exim 3.33 #1 (Debian)) id 16ttAf-0002fx-00 for ; Sat, 06 Apr 2002 18:36:09 +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 16ttAb-0003lc-00; Sat, 06 Apr 2002 11:36:05 -0500 Original-Received: from gadolinium.btinternet.com ([194.73.73.111]) by fencepost.gnu.org with esmtp (Exim 3.34 #1 (Debian)) id 16ttAP-0003kx-00 for ; Sat, 06 Apr 2002 11:35:53 -0500 Original-Received: from host213-123-76-238.btinternet.com ([213.123.76.238] helo=nyaumo.btinternet.com) by gadolinium.btinternet.com with esmtp (Exim 3.22 #8) id 16ttAO-0005eh-00; Sat, 06 Apr 2002 17:35:52 +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 RAA01370; Sat, 6 Apr 2002 17:35:01 +0100 Original-To: bug-gnu-emacs@gnu.org In-Reply-To: Original-Lines: 31 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:454 X-Report-Spam: http://spam.gmane.org/gmane.emacs.bugs:454 Harald.Maier.BW@t-online.de writes: > >>>>> "Eric" == Eric Hanchrow writes: > >>>>> "Harald" == Harald Maier BW writes: > Eric> $ : command not found > > Harald> ... set the LANG variable in the control panel / system > Harald> dialog to "C". Interesting, I'm confused as to why (set-language-environment "Latin-1") produces different results for default-process-coding-system depending on whether the previous language environment was "Default" or "German". Another workaround could be to remove the (set-language-environment "Latin-1") from your .emacs, and just change whatever it is you don't like about the "German" language environment (they don't differ by much). I see why this happens now. The Windows specific startup code tries to DTRT for default-process-coding-system, depending on which shell you are using. But set-language-environment overrides this. I think an exception needs to be made within set-language-environment to not mess with default-process-coding-system on Windows, as the problem of different shells is too complex to deal with there. Alternatively, we could use the same logic as at startup, but if that did not DTRT and the user overrode it, it would only cause the same problems we are seeing now. -- Jason Rumney