From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: "Ken Manheimer" Newsgroups: gmane.emacs.devel Subject: Re: emacsclient almost working! Date: Tue, 22 Apr 2008 13:52:27 -0400 Message-ID: <2cd46e7f0804221052t5dc6cb7cv73fa8b302c48767f@mail.gmail.com> References: <2cd46e7f0804211117k33a4d515p1863f2b16c9c9419@mail.gmail.com> <2cd46e7f0804211520x5d9c7e99xfe910d6c76ff71d7@mail.gmail.com> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: multipart/alternative; boundary="----=_Part_22977_26703198.1208886747570" X-Trace: ger.gmane.org 1208886770 20961 80.91.229.12 (22 Apr 2008 17:52:50 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Tue, 22 Apr 2008 17:52:50 +0000 (UTC) Cc: emacs-devel To: "Stefan Monnier" Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Tue Apr 22 19:53:24 2008 connect(): Connection refused 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 1JoMg8-0004Ds-UF for ged-emacs-devel@m.gmane.org; Tue, 22 Apr 2008 19:53:17 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1JoMfT-0003JL-FL for ged-emacs-devel@m.gmane.org; Tue, 22 Apr 2008 13:52:35 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1JoMfP-0003Iu-6j for emacs-devel@gnu.org; Tue, 22 Apr 2008 13:52:31 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1JoMfN-0003Ii-Q0 for emacs-devel@gnu.org; Tue, 22 Apr 2008 13:52:30 -0400 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1JoMfN-0003If-Mo for emacs-devel@gnu.org; Tue, 22 Apr 2008 13:52:29 -0400 Original-Received: from wa-out-1112.google.com ([209.85.146.179]) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1JoMfM-0007YC-Ox for emacs-devel@gnu.org; Tue, 22 Apr 2008 13:52:29 -0400 Original-Received: by wa-out-1112.google.com with SMTP id k34so3774193wah.10 for ; Tue, 22 Apr 2008 10:52:27 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:message-id:date:from:to:subject:cc:in-reply-to:mime-version:content-type:references; bh=MlvfxWkDEMZn5UTVULubYow/z96fe+YyCZVHi73aC9M=; b=RQysjNrCcK6jfU007DXrrVj3LcqBGmH0vNm/U66NJSAmu8By06xYsomS9m26fbyAyevUJhVBIGNY09B11di1vkXyCQPOC+AMuQZv7wwG2OsGrcXdQa3J4c5f+l+pgW0p2nm6vTNqw1Y/9al7eqZhpXZHPSezSvcrk+1oUDZ4Vrs= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:date:from:to:subject:cc:in-reply-to:mime-version:content-type:references; b=OWW2xGPSsSCgWAJLoCGLCXopHchEI5or59p4cIkY/TcL3ucHx4cRm4fgtNlejqDMHMzs7QUCHDyrrK1l1tsVds02YNCqgIfXbn+iX7Rh6nbrYp1g85FNsajhLaKHvxtWZL8hDUfjiAb79CMLIGFoOdYigtBjhsXzuIwi3JMF+D8= Original-Received: by 10.114.202.15 with SMTP id z15mr54160waf.72.1208886747579; Tue, 22 Apr 2008 10:52:27 -0700 (PDT) Original-Received: by 10.114.160.14 with HTTP; Tue, 22 Apr 2008 10:52:27 -0700 (PDT) In-Reply-To: X-detected-kernel: by monty-python.gnu.org: Linux 2.6 (newer, 2) 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:95793 Archived-At: ------=_Part_22977_26703198.1208886747570 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-Disposition: inline On Mon, Apr 21, 2008 at 10:52 PM, Stefan Monnier wrote: > > i'm attaching the contents of the " *server*" buffer. I see at least > part > > of the problem - I had an environment variable CR which had the value ^M > > (char 13). unsetting that environment variable prevents the problem. > > Thanks, does the patch below fix the problem? yes. thanks! > Stefan > > > --- server.el.~1.164.~ 2008-04-20 17:31:51.000000000 -0400 > +++ server.el 2008-04-21 22:51:49.000000000 -0400 > @@ -500,8 +500,9 @@ > :filter 'server-process-filter > ;; We must receive file names without being decoded. > ;; Those are decoded by server-process-filter > according > - ;; to file-name-coding-system. > - :coding 'raw-text > + ;; to file-name-coding-system. Also don't get > + ;; confused by CRs since we don't quote them. > + :coding 'raw-text-unix > ;; The other args depend on the kind of socket used. > (if server-use-tcp > (list :family nil > -- ken http://myriadicity.net ------=_Part_22977_26703198.1208886747570 Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-Disposition: inline On Mon, Apr 21, 2008 at 10:52 PM, Stefan Monnier <monnier@iro.umontreal.ca> wrote:
> i'm attaching the contents of the " *server*" buffer.  I see at least part
> of the problem - I had an environment variable CR which had the value ^M
> (char 13).  unsetting that environment variable prevents the problem.

Thanks, does the patch below fix the problem?

yes.  thanks!
 
       Stefan


--- server.el.~1.164.~  2008-04-20 17:31:51.000000000 -0400
+++ server.el   2008-04-21 22:51:49.000000000 -0400
@@ -500,8 +500,9 @@
                      :filter 'server-process-filter
                      ;; We must receive file names without being decoded.
                      ;; Those are decoded by server-process-filter according
-                      ;; to file-name-coding-system.
-                      :coding 'raw-text
+                      ;; to file-name-coding-system.  Also don't get
+                      ;; confused by CRs since we don't quote them.
+                      :coding 'raw-text-unix
                      ;; The other args depend on the kind of socket used.
                      (if server-use-tcp
                          (list :family nil



--
ken
http://myriadicity.net ------=_Part_22977_26703198.1208886747570--