From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Eli Zaretskii Newsgroups: gmane.emacs.help Subject: Re: Emacs 23.3 with Cygwin bash and '\r'. Date: Fri, 11 Mar 2011 11:00:09 +0200 Message-ID: <837hc6uj52.fsf@gnu.org> References: <83fwquop5n.fsf@gnu.org> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: QUOTED-PRINTABLE X-Trace: dough.gmane.org 1299834096 15689 80.91.229.12 (11 Mar 2011 09:01:36 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Fri, 11 Mar 2011 09:01:36 +0000 (UTC) To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Fri Mar 11 10:01:32 2011 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1PxyE0-0006h0-1X for geh-help-gnu-emacs@m.gmane.org; Fri, 11 Mar 2011 10:01:32 +0100 Original-Received: from localhost ([127.0.0.1]:40787 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1PxyDx-0004Q0-D3 for geh-help-gnu-emacs@m.gmane.org; Fri, 11 Mar 2011 04:01:29 -0500 Original-Received: from [140.186.70.92] (port=39807 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1PxyCl-0004NN-T0 for help-gnu-emacs@gnu.org; Fri, 11 Mar 2011 04:00:19 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1PxyCk-00052p-1O for help-gnu-emacs@gnu.org; Fri, 11 Mar 2011 04:00:15 -0500 Original-Received: from mtaout20.012.net.il ([80.179.55.166]:37327) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1PxyCj-00052J-Qk for help-gnu-emacs@gnu.org; Fri, 11 Mar 2011 04:00:13 -0500 Original-Received: from conversion-daemon.a-mtaout20.012.net.il by a-mtaout20.012.net.il (HyperSendmail v2007.08) id <0LHV00900XH0NC00@a-mtaout20.012.net.il> for help-gnu-emacs@gnu.org; Fri, 11 Mar 2011 11:00:11 +0200 (IST) Original-Received: from HOME-C4E4A596F7 ([77.124.58.59]) by a-mtaout20.012.net.il (HyperSendmail v2007.08) with ESMTPA id <0LHV008YXYC5VMA0@a-mtaout20.012.net.il> for help-gnu-emacs@gnu.org; Fri, 11 Mar 2011 11:00:10 +0200 (IST) In-reply-to: X-012-Sender: halo1@inter.net.il X-detected-operating-system: by eggs.gnu.org: Solaris 10 (beta) X-Received-From: 80.179.55.166 X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.help:79959 Archived-At: > From: Oleksandr Gavenko > Date: Fri, 11 Mar 2011 10:32:44 +0200 >=20 > On 10.03.2011 19:34, Eli Zaretskii wrote: > >> From: Oleksandr Gavenko > >> Date: Thu, 10 Mar 2011 18:30:41 +0200 > >> > >> I get latest Emacs 23.3: > >> > >> http://permalink.gmane.org/gmane.emacs.announce/19 > >> > >> and it loaded successfully, but previously all Emacs after setti= ng: > >> > >> (setq shell-file-name "bash") > >> (setenv "SHELL" "/bin/bash") > >> > >> work fine and now shell say: > >> > >> =EF=BB=BF $ pwd > >> bash: $'pwd\r': =D0=BA=D0=BE=D0=BC=D0=B0=D0=BD=D0=B4=D0=B0 =D0= =BD=D0=B5 =D0=BD=D0=B0=D0=B9=D0=B4=D0=B5=D0=BD=D0=B0 > > > > Doesn't that \r give a hint? > > > Sorry, no )) What value do you get if you evaluate the following expression: (process-coding-system (get-process "shell")) You can do the evaluation with M-: Since you are using the Cygwin bash, you need to use undecided-unix (or something -unix, anyway) in the cdr of the cons cell that is returned by process-coding-system. You can probably use set-process-coding-system to change the defaults. (Btw, if your Emacs is a native Windows build, then you should expect these surprises, because native Windows programs and Cygwin programs are subtly incompatible, the matters related to EOL format being one of the aspects of this incompatibility. Why not use the Cygwin build of Emacs instead?) > In *Message* buffer I get: >=20 > #("ls\n" 0 2 > (fontified t)) >=20 > So no any \r pass to filter!! Encoding and decoding works below the Lisp level.