From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: "Lennart Borgman (gmail)" Newsgroups: gmane.emacs.devel Subject: Re: Codepages and shell function on w32 Date: Mon, 01 Jan 2007 04:05:23 +0100 Message-ID: <45987A73.6040702@gmail.com> References: <4597B981.9020506@gmail.com> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Trace: sea.gmane.org 1167620744 32369 80.91.229.12 (1 Jan 2007 03:05:44 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Mon, 1 Jan 2007 03:05:44 +0000 (UTC) Cc: emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Mon Jan 01 04:05:42 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 1H1DUY-00029L-LY for ged-emacs-devel@m.gmane.org; Mon, 01 Jan 2007 04:05:38 +0100 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1H1DUY-0003Mq-7O for ged-emacs-devel@m.gmane.org; Sun, 31 Dec 2006 22:05:38 -0500 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1H1DUN-0003MX-Ni for emacs-devel@gnu.org; Sun, 31 Dec 2006 22:05:27 -0500 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1H1DUM-0003MI-5o for emacs-devel@gnu.org; Sun, 31 Dec 2006 22:05:27 -0500 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1H1DUM-0003MF-1D for emacs-devel@gnu.org; Sun, 31 Dec 2006 22:05:26 -0500 Original-Received: from [80.76.149.213] (helo=ch-smtp02.sth.basefarm.net) by monty-python.gnu.org with esmtps (TLS-1.0:DHE_RSA_AES_256_CBC_SHA:32) (Exim 4.52) id 1H1DUK-0005ju-Da; Sun, 31 Dec 2006 22:05:24 -0500 Original-Received: from c83-254-145-24.bredband.comhem.se ([83.254.145.24]:62775 helo=[127.0.0.1]) by ch-smtp02.sth.basefarm.net with esmtp (Exim 4.63) (envelope-from ) id 1H1DUI-0000Wk-8j; Mon, 01 Jan 2007 04:05:23 +0100 User-Agent: Thunderbird 1.5.0.9 (Windows/20061207) Original-To: Eli Zaretskii In-Reply-To: X-Antivirus: avast! (VPS 0666-1, 2006-12-31), Outbound message X-Antivirus-Status: Clean X-Scan-Result: No virus found in message 1H1DUI-0000Wk-8j. X-Scan-Signature: ch-smtp02.sth.basefarm.net 1H1DUI-0000Wk-8j 699e948e991de8021c27039e3b263fe2 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:64592 Archived-At: Eli Zaretskii wrote: >> Date: Sun, 31 Dec 2006 14:22:09 +0100 >> From: "Lennart Borgman (gmail)" >> >> (cp-out (read (format "cp%s" (w32-get-console-output-codepage)))) >> (cp-in (read (format "cp%s" (w32-get-console-codepage))))) >> (cond >> ((w32-shell-dos-semantics) >> (set-process-coding-system proc cp-out cp-in)) >> > > This is wrong: w32-fns.el sets this as follows: > > (setq default-process-coding-system > (if default-enable-multibyte-characters > '(undecided-dos . undecided-unix) > '(raw-text-dos . raw-text-unix))) > > The output encoding uses *-unix for a good reason. > Can you please explain a bit more? How should it look? In the case cmdproxy case (the case above) it works for me with this code using Swedish characters in file names for example. > >> ;; MSYS: fix-me, does not work >> (set-process-coding-system proc 'windows-1252 'windows-1252)) >> ((string-match "/cygwin/" fullprog) >> (message "think it is Cygwin...") >> ;; Cygwin: fix-me, does not work >> (set-process-coding-system proc 'windows-1252 'windows-1252)) >> > > Does Cygwin at all support anything beyond the C locale? If not, > that's the reason why windows-1252 doesn't work for you. > I have no idea. I just sent this code in the hope that someone knew and could correct it. It would be nice if we got it correct in the release. What do I write to test with the C locale?