From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Lennart Borgman Newsgroups: gmane.emacs.bugs Subject: bug#6339: url-filename => "/c:/some/file.txt" Date: Thu, 22 Sep 2011 00:51:51 +0200 Message-ID: References: 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 1316645575 4276 80.91.229.12 (21 Sep 2011 22:52:55 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Wed, 21 Sep 2011 22:52:55 +0000 (UTC) Cc: Lars Magne Ingebrigtsen , 6339@debbugs.gnu.org To: Juanma Barranquero Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Thu Sep 22 00:52:51 2011 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([140.186.70.17]) by lo.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1R6Ver-0006tk-AR for geb-bug-gnu-emacs@m.gmane.org; Thu, 22 Sep 2011 00:52:49 +0200 Original-Received: from localhost ([::1]:36590 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1R6Veq-0007tH-NA for geb-bug-gnu-emacs@m.gmane.org; Wed, 21 Sep 2011 18:52:48 -0400 Original-Received: from eggs.gnu.org ([140.186.70.92]:53287) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1R6Veo-0007t2-Ec for bug-gnu-emacs@gnu.org; Wed, 21 Sep 2011 18:52:47 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1R6Ven-0006WK-DB for bug-gnu-emacs@gnu.org; Wed, 21 Sep 2011 18:52:46 -0400 Original-Received: from debbugs.gnu.org ([140.186.70.43]:41798) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1R6Ven-0006WF-6Z for bug-gnu-emacs@gnu.org; Wed, 21 Sep 2011 18:52:45 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.69) (envelope-from ) id 1R6Vf4-0003kD-1B for bug-gnu-emacs@gnu.org; Wed, 21 Sep 2011 18:53:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Lennart Borgman Original-Sender: debbugs-submit-bounces@debbugs.gnu.org Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Wed, 21 Sep 2011 22:53:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 6339 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: Original-Received: via spool by 6339-submit@debbugs.gnu.org id=B6339.131664555114353 (code B ref 6339); Wed, 21 Sep 2011 22:53:02 +0000 Original-Received: (at 6339) by debbugs.gnu.org; 21 Sep 2011 22:52:31 +0000 Original-Received: from localhost ([127.0.0.1] helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1R6VeY-0003jR-No for submit@debbugs.gnu.org; Wed, 21 Sep 2011 18:52:31 -0400 Original-Received: from mail-fx0-f44.google.com ([209.85.161.44]) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1R6VeX-0003jK-64 for 6339@debbugs.gnu.org; Wed, 21 Sep 2011 18:52:30 -0400 Original-Received: by fxd18 with SMTP id 18so2010632fxd.3 for <6339@debbugs.gnu.org>; Wed, 21 Sep 2011 15:52:11 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc:content-type:content-transfer-encoding; bh=671zFCocGehliF3j8/WsKCmvKw2Nf2JVbgKDZlEv1dk=; b=Qy6MF8UdN6pM7CEOMas0pWYorIeEuI6LizpbXN0C5Ql8CnJMBxUW9yOSVWyFoLTssL DBdmfmam8jSaz3nHBHPxD7vg78mc4N8Yxjz1815UqzGE1EsEu5D/GEtxUmIa+RI8xCdd kX/H+1B1Tv1pGwCgzsViYM8Sz8U6uXeAnScZY= Original-Received: by 10.223.48.69 with SMTP id q5mr1841019faf.80.1316645531254; Wed, 21 Sep 2011 15:52:11 -0700 (PDT) Original-Received: by 10.152.20.229 with HTTP; Wed, 21 Sep 2011 15:51:51 -0700 (PDT) In-Reply-To: X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.11 Precedence: list Resent-Date: Wed, 21 Sep 2011 18:53:02 -0400 X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 1) X-Received-From: 140.186.70.43 X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Original-Sender: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.bugs:51621 Archived-At: On Thu, Sep 22, 2011 at 00:45, Juanma Barranquero wrote: > On Thu, Sep 22, 2011 at 00:31, Lennart Borgman > wrote: > >> Are we not dealing with two different file name syntaxes here that >> just happens to look very similar? I.e. the URL file name syntax and >> the unix style file name syntax. > > I would expect that an accessor for the filename slot of a struct > called URL would interpret the struct as a URL, and the "filename" of > the URL does not start with a slash. Why would I expect that > url-filename (url-generic-parse-url, in fact) returns anything "unix > style" specific? > >> url-filename is now returning the file name in unix style. > > No. > > =C2=A0(url-generic-parse-url "file:///C:/my/file.xt") =3D> [cl-struct-url > "file" nil nil "" 21 "/C:/my/file.txt" nil nil t nil] > > That's not a "file name in unix style", that's a bug, clear and > simple. Ah, yes, of course. I thought everyone reading here was clear about that. > There's no reason why url-generic-parse-url should think that > a URL is in some kind of "unix style". What if it is a VMS filename? You are right. I did not mean to imply that the current behaviour is ok. >> This is, as >> you said, practical, but a bit surprising. I suspect there are some >> small mixing of those syntaxes elsewhere too. My suggestion would be >> to keep them and document them. > > "Keep them and document them" still means that it does not work for > Windows or VMS or anything not POSIX-style. And fixing it just for > these systems means that we keep a bug for POSIX sake and make other > systems jump around hoops. Ugly, to say the least. Of course the behaviour must be fixed too. I meant to write that it is ok that url-filename returns a system-dependent absolute file name (for local files).