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: Thu, 22 Sep 2011 02:32:05 +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 1316651638 6446 80.91.229.12 (22 Sep 2011 00:33:58 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Thu, 22 Sep 2011 00:33:58 +0000 (UTC) Cc: Lars Magne Ingebrigtsen , 6339@debbugs.gnu.org To: Lennart Borgman Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Thu Sep 22 02:33:53 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 1R6XEd-0002Rp-95 for geb-bug-gnu-emacs@m.gmane.org; Thu, 22 Sep 2011 02:33:51 +0200 Original-Received: from localhost ([::1]:53394 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1R6XEc-0000ue-2N for geb-bug-gnu-emacs@m.gmane.org; Wed, 21 Sep 2011 20:33:50 -0400 Original-Received: from eggs.gnu.org ([140.186.70.92]:45690) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1R6XEY-0000u4-MA for bug-gnu-emacs@gnu.org; Wed, 21 Sep 2011 20:33:47 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1R6XEX-0001rt-EK for bug-gnu-emacs@gnu.org; Wed, 21 Sep 2011 20:33:46 -0400 Original-Received: from debbugs.gnu.org ([140.186.70.43]:43865) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1R6XEW-0001rb-Pz for bug-gnu-emacs@gnu.org; Wed, 21 Sep 2011 20:33:45 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.69) (envelope-from ) id 1R6XEn-0005xa-MO for bug-gnu-emacs@gnu.org; Wed, 21 Sep 2011 20:34: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: Thu, 22 Sep 2011 00:34: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.131665158822847 (code B ref 6339); Thu, 22 Sep 2011 00:34:01 +0000 Original-Received: (at 6339) by debbugs.gnu.org; 22 Sep 2011 00:33:08 +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 1R6XDu-0005wQ-V2 for submit@debbugs.gnu.org; Wed, 21 Sep 2011 20:33:08 -0400 Original-Received: from mail-pz0-f50.google.com ([209.85.210.50]) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1R6XDs-0005wI-Ql for 6339@debbugs.gnu.org; Wed, 21 Sep 2011 20:33:05 -0400 Original-Received: by pzk37 with SMTP id 37so3401330pzk.9 for <6339@debbugs.gnu.org>; Wed, 21 Sep 2011 17:32:46 -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=849eulI6AXa7F22cpg1NkvrFo4m6nP9vuQirYpxt3xI=; b=vkOvTPDSgP9OFTSQXREK4VUhUYcnRrUQV/jKoVP1snoac5OIXnCVc+OWKAhTsWXy3h WFEVY7BGqdjXiSV2geEFFZYfzrazuXhwp8EZhn8M6ZCJJQVVK+/zC7xEH5TYc2OkRZlU qGyZYL4XhNWTTOozHTA6x+rlnm/ZnlJdBY9V4= Original-Received: by 10.68.44.225 with SMTP id h1mr521250pbm.85.1316651566063; Wed, 21 Sep 2011 17:32:46 -0700 (PDT) Original-Received: by 10.142.223.13 with HTTP; Wed, 21 Sep 2011 17:32:05 -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 20:34: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:51630 Archived-At: On Thu, Sep 22, 2011 at 01:46, Lennart Borgman wrote: > But unfortunately that might not be the right answer... Take this URL fil= e name: > > =C2=A0 file:///c:/some/file.txt > > On windows that would be "c:/some/file.txt". What would it mean on a > unix system? I guess it would mean "/c:/some/file.txt", but I am not > sure. Perhaps that is an invalid file name on unix? Quite likely, but IMO you're missing the point. file:///c:/some/file.txt is a URL, i.e., it's a pointer to some specific file in some specific place (or files with identical path and name in different hosts, because the URL is missing the HOST part, defaulting then to localhost). In fact, it is the URL that points to a file, in some filesystem, with absolute path "c:/some/file.txt". Whether that file exists, and whether that path makes sense when you apply it locally to a POSIX system, i.e., whether you can access a file with that URL, is irrelevant to the fact that "c:/some/file.txt" is the path of the URL. You're muddling the waters when you insist in "context" and "local system" and the like, because that affects to the *use* of the URL, not its syntax. Splitting a URL into pieces according to the RFC does not depend on where you do it or how do you intend to use it. We wouldn't be having this discussion in an alternative world where the POSIX path separator was still "/", but the good people who wrote the URI/URL specs had chosen "#" as the field separator in URLs: file:##HOST#PATH file:###c:/some/file.txt vs. file:###some/file.txt No one would try to split that as "#some/file.txt". =C2=A0 =C2=A0 Juanma