From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Juanma Barranquero Newsgroups: gmane.emacs.bugs Subject: bug#6339: url-filename => "/c:/some/file.txt" Date: Sat, 24 Sep 2011 10:59:24 +0200 Message-ID: References: <87bouahatm.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 1316854840 25529 80.91.229.12 (24 Sep 2011 09:00:40 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Sat, 24 Sep 2011 09:00:40 +0000 (UTC) Cc: Lars Magne Ingebrigtsen , 6339@debbugs.gnu.org To: Jason Rumney Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Sat Sep 24 11:00:36 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 1R7O67-00042e-SJ for geb-bug-gnu-emacs@m.gmane.org; Sat, 24 Sep 2011 11:00:36 +0200 Original-Received: from localhost ([::1]:54299 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1R7O67-0001nC-Ft for geb-bug-gnu-emacs@m.gmane.org; Sat, 24 Sep 2011 05:00:35 -0400 Original-Received: from eggs.gnu.org ([140.186.70.92]:41699) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1R7O64-0001n6-GF for bug-gnu-emacs@gnu.org; Sat, 24 Sep 2011 05:00:33 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1R7O62-0003nl-Vd for bug-gnu-emacs@gnu.org; Sat, 24 Sep 2011 05:00:32 -0400 Original-Received: from debbugs.gnu.org ([140.186.70.43]:47956) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1R7O62-0003nh-Sd for bug-gnu-emacs@gnu.org; Sat, 24 Sep 2011 05:00:30 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.69) (envelope-from ) id 1R7O6X-0000PW-IQ for bug-gnu-emacs@gnu.org; Sat, 24 Sep 2011 05:01:01 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Juanma Barranquero Original-Sender: debbugs-submit-bounces@debbugs.gnu.org Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sat, 24 Sep 2011 09:01:01 +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.13168548411550 (code B ref 6339); Sat, 24 Sep 2011 09:01:01 +0000 Original-Received: (at 6339) by debbugs.gnu.org; 24 Sep 2011 09:00:41 +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 1R7O6C-0000Ow-RP for submit@debbugs.gnu.org; Sat, 24 Sep 2011 05:00:41 -0400 Original-Received: from mail-gy0-f172.google.com ([209.85.160.172]) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1R7O68-0000On-4N for 6339@debbugs.gnu.org; Sat, 24 Sep 2011 05:00:37 -0400 Original-Received: by gyd12 with SMTP id 12so3162608gyd.3 for <6339@debbugs.gnu.org>; Sat, 24 Sep 2011 02:00:04 -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=XYsn8Zj7W0aHcF63APX7WREFhJfW0wvtTds8NtTPhEk=; b=PSfwe6f9kKuoStKZEe/9hf79mVKxFdp7CL23LrNH7k+GjO9zMwyDIRylpjQZUL4dFJ PdOZ5hfGAqayfBcidDT4kxBPpzZuiW4f2GDdwgBto/4DqepQiUsMsFkOZ/vwTZTcWj73 X0c6EuZEZ7aCVQnrL727Q+GmWmqRvJDIrxxPo= Original-Received: by 10.68.33.232 with SMTP id u8mr1309486pbi.119.1316854804042; Sat, 24 Sep 2011 02:00:04 -0700 (PDT) Original-Received: by 10.142.223.13 with HTTP; Sat, 24 Sep 2011 01:59:24 -0700 (PDT) In-Reply-To: <87bouahatm.fsf@gnu.org> X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.11 Precedence: list Resent-Date: Sat, 24 Sep 2011 05:01:01 -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:51763 Archived-At: On Sat, Sep 24, 2011 at 05:35, Jason Rumney wrote: > No. That is not an absolute path on most platforms. The spec says that the PATH part is an absolute path. You can argue that, in POSIX, "some/file.txt" is an absolute path, because all PATH parts of file: URIs must be understood as such (and so, have an implicit / at the front), or you can argue that these paths should be propertly rooted (and so, the correct way for a POSIX file: reference is file:////some.file.txt). But no amount of defining or redefining "absolute" is going to change the fact that the third slash in file:/// is a separator, and no part of the PATH, according to the spec. > The absolute path on > POSIX platforms would be /c:/some/file.txt, which is consistant with > other URL schemes where the initial / forms part of the PATH portion of > the URL. I don't know what other URLs schemes say, but certainly RFC 1738 says: 3.3. HTTP The HTTP URL scheme is used to designate Internet resources accessible using HTTP (HyperText Transfer Protocol). The HTTP protocol is specified elsewhere. This specification only describes the syntax of HTTP URLs. An HTTP URL takes the form: http://:/? where and are as described in Section 3.1. If : is omitted, the port defaults to 80. No user name or password is allowed. is an HTTP selector, and is a query string. The is optional, as is the and its preceding "?". If neither nor is present, the "/" may also be omitted. Within the and components, "/", ";", "?" are reserved. The "/" character may be used within HTTP to designate a hierarchical structure. so it's no different of "file:". The slash is a separator. If people doesn''t want to change the way Emacs works, and prefer to add ad hoc fixes for Windows URIs, I can do nothing against it. It's ugly, but such is life. But let's accept that using that slash is just a shortcut because it conveniently happens to coincide with the POSIX slash separator, not because it is really part of the path. =C2=A0 =C2=A0 Juanma