From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: =?ISO-8859-1?Q?Jan_Dj=E4rv?= Newsgroups: gmane.emacs.devel Subject: Re: Pathnames with two (or more) slashes in Makefile.c Date: Mon, 29 Jan 2007 09:06:21 +0100 Message-ID: <45BDAAFD.6050402@swipnet.se> References: <45BC7182.7010704@swipnet.se> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: quoted-printable X-Trace: sea.gmane.org 1170058032 13246 80.91.229.12 (29 Jan 2007 08:07:12 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Mon, 29 Jan 2007 08:07:12 +0000 (UTC) Cc: emacs-devel@gnu.org To: Sascha Wilde Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Mon Jan 29 09:07:10 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 1HBRXh-0006A8-5w for ged-emacs-devel@m.gmane.org; Mon, 29 Jan 2007 09:07:09 +0100 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1HBRXg-0001kB-Lb for ged-emacs-devel@m.gmane.org; Mon, 29 Jan 2007 03:07:08 -0500 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1HBRXV-0001hh-1S for emacs-devel@gnu.org; Mon, 29 Jan 2007 03:06:57 -0500 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1HBRXP-0001ZJ-9x for emacs-devel@gnu.org; Mon, 29 Jan 2007 03:06:55 -0500 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1HBRXP-0001ZG-3Z for emacs-devel@gnu.org; Mon, 29 Jan 2007 03:06:51 -0500 Original-Received: from av12-2-sn2.hy.skanova.net ([81.228.8.186]) by monty-python.gnu.org with esmtp (Exim 4.52) id 1HBRXO-0004kk-EH for emacs-devel@gnu.org; Mon, 29 Jan 2007 03:06:50 -0500 Original-Received: by av12-2-sn2.hy.skanova.net (Postfix, from userid 502) id 7272838111; Mon, 29 Jan 2007 09:06:49 +0100 (CET) Original-Received: from smtp4-2-sn2.hy.skanova.net (smtp4-2-sn2.hy.skanova.net [81.228.8.93]) by av12-2-sn2.hy.skanova.net (Postfix) with ESMTP id 6156337F8A; Mon, 29 Jan 2007 09:06:49 +0100 (CET) Original-Received: from husetbladh.homeip.net (81-235-205-78-no59.tbcn.telia.com [81.235.205.78]) by smtp4-2-sn2.hy.skanova.net (Postfix) with ESMTP id 3C58F37E49; Mon, 29 Jan 2007 09:06:49 +0100 (CET) User-Agent: Thunderbird 1.5.0.9 (X11/20070102) In-Reply-To: X-detected-kernel: Linux 2.4-2.6 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:65587 Archived-At: Sascha Wilde skrev: > Jan Dj=E4rv wrote: >=20 > A pathname consisting of a single slash shall resolve to the root > directory of the process. A null pathname shall not be successfully > resolved. A pathname that begins with two successive slashes may be > interpreted in an implementation-defined manner, although more than > two leading slashes shall be treated as a single slash. >=20 > On GNU Systems (and most unixoid systems I know), two leading slashes > are not interpreted in any special way, but like three and more > slashes: they are treated as one. >=20 > So the problem is, that the double slash is written unquoted to > Makefile.c where it gets interpreted as a comment. >=20 > This is IMO a bug. >=20 > When generating Makefile.c consecutive slashes hould either be reduced > to one or appropriately quoted. Actually it was a bug in my patch, I should not use #define if a double s= lash=20 may be present. I briefly checked the other #define:s in Makefile.in and= =20 mostly the valuse comes from s/*.h or m/*.h, so we have control over thes= e. I've checked in a fix, please try it. Thanks, Jan D.