From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Werner LEMBERG Newsgroups: gmane.emacs.devel,gmane.emacs.pretest.bugs Subject: Re: Emacsclient/server filename quoting error Date: Fri, 15 Dec 2006 16:14:38 +0100 (CET) Message-ID: <20061215.161438.180093727.wl@gnu.org> References: NNTP-Posting-Host: dough.gmane.org Mime-Version: 1.0 Content-Type: Text/Plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Trace: sea.gmane.org 1166195762 15760 80.91.229.10 (15 Dec 2006 15:16:02 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Fri, 15 Dec 2006 15:16:02 +0000 (UTC) Cc: F.J.Wright@qmul.ac.uk, eliz@gnu.org, emacs-pretest-bug@gnu.org, emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Fri Dec 15 16:16:01 2006 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by dough.gmane.org with esmtp (Exim 4.50) id 1GvEmw-0007v2-DL for ged-emacs-devel@m.gmane.org; Fri, 15 Dec 2006 16:15:54 +0100 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1GvEmv-0002dn-NH for ged-emacs-devel@m.gmane.org; Fri, 15 Dec 2006 10:15:53 -0500 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1GvEmG-0002Cp-2l for emacs-devel@gnu.org; Fri, 15 Dec 2006 10:15:12 -0500 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1GvEmC-00026r-Kr for emacs-devel@gnu.org; Fri, 15 Dec 2006 10:15:09 -0500 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1GvEm4-0001vH-Rc; Fri, 15 Dec 2006 10:15:00 -0500 Original-Received: from [212.227.126.177] (helo=moutng.kundenserver.de) by monty-python.gnu.org with esmtp (Exim 4.52) id 1GvEm0-0002l6-8U; Fri, 15 Dec 2006 10:14:56 -0500 Original-Received: from [84.175.132.106] (helo=localhost) by mrelayeu.kundenserver.de (node=mrelayeu3) with ESMTP (Nemesis), id 0MKxQS-1GvElv3PWR-000369; Fri, 15 Dec 2006 16:14:52 +0100 Original-To: lekktu@gmail.com In-Reply-To: X-Mailer: Mew version 5.1.50 on Emacs 22.0.90.1 / Mule 5.0 (SAKAKI) X-Provags-ID: kundenserver.de abuse@kundenserver.de login:2dc398bc694a1e60948148ba0a42c0da 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:63772 gmane.emacs.pretest.bugs:15797 Archived-At: > > Actually, a cleaner way of fixing this would be to have a > > WINDOWSNT-only wrapper for execvp, called, say w32_execvp, that > > does TRT with quoting the arguments. > > You like this one better, then? Since those issues are full of subtleties I suggest that you have a look at the gnulib CVS (at savannah.gnu.org), inspecting the files `execute.c' and `pipe.c': http://cvs.savannah.gnu.org/viewcvs/gnulib/lib/execute.c?rev=1.7&root=gnulib&view=log http://cvs.savannah.gnu.org/viewcvs/gnulib/lib/pipe.c?rev=1.6&root=gnulib&view=log Similar code is used in groff too. Werner