From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Eli Zaretskii Newsgroups: gmane.emacs.devel Subject: Re: Codepages and shell function on w32 Date: Mon, 01 Jan 2007 02:27:45 -0500 Message-ID: References: <4597B981.9020506@gmail.com> <45987A73.6040702@gmail.com> <4598A548.7040702@gnu.org> Reply-To: Eli Zaretskii NNTP-Posting-Host: lo.gmane.org X-Trace: sea.gmane.org 1167636498 26654 80.91.229.12 (1 Jan 2007 07:28:18 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Mon, 1 Jan 2007 07:28:18 +0000 (UTC) Cc: lennart.borgman@gmail.com, emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Mon Jan 01 08:28:16 2007 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.50) id 1H1Hah-0007Wc-TP for ged-emacs-devel@m.gmane.org; Mon, 01 Jan 2007 08:28:16 +0100 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1H1Hah-0008Gv-AW for ged-emacs-devel@m.gmane.org; Mon, 01 Jan 2007 02:28:15 -0500 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1H1HaV-0008EI-Mz for emacs-devel@gnu.org; Mon, 01 Jan 2007 02:28:03 -0500 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1H1HaV-0008Ds-A5 for emacs-devel@gnu.org; Mon, 01 Jan 2007 02:28:03 -0500 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1H1HaV-0008Dh-30 for emacs-devel@gnu.org; Mon, 01 Jan 2007 02:28:03 -0500 Original-Received: from [199.232.76.164] (helo=fencepost.gnu.org) by monty-python.gnu.org with esmtp (Exim 4.52) id 1H1HaU-0007ZN-QW for emacs-devel@gnu.org; Mon, 01 Jan 2007 02:28:02 -0500 Original-Received: from eliz by fencepost.gnu.org with local (Exim 4.60) (envelope-from ) id 1H1HaD-00033R-FU; Mon, 01 Jan 2007 02:27:45 -0500 Original-To: Jason Rumney In-reply-to: <4598A548.7040702@gnu.org> (message from Jason Rumney on Mon, 01 Jan 2007 06:08:08 +0000) X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.devel:64595 Archived-At: > Date: Mon, 01 Jan 2007 06:08:08 +0000 > From: Jason Rumney > Cc: Eli Zaretskii , emacs-devel@gnu.org > > There is no absolute "correct", as a user may run any programs from the > command-line, not just native Windows console programs, and their input > files could be in any encoding. But the same problem exists on Unix, doesn't it? On a GNU/Linux system I'm typing this, default-process-coding-system is set to `(undecided . iso-latin-1)'. How about if we follow the same logic, with the exception that we want to force EOL conversions to specific values as w32-fns.el does now? That is, use undecided-dos for input and CP-unix for output, where CP is whatever w32-get-console-output-codepage returns. The other problem is that `undecided' might use the wrong defaults on w32, because console programs and GUI programs use different encodings... > In any case, hardcoding windows-1252 is clearly wrong in > non-European locales. 100% agreement. The days of Europe-centric code should be long gone. > Why not just set the locale for dos-semantic shells and leave it at > that? If we find no better alternative that is safe, let's do at least this.