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: Wed, 9 May 2012 13:52:42 +0200 Message-ID: References: <87sjf94tek.fsf@gnu.org> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable X-Trace: dough.gmane.org 1336564446 16234 80.91.229.3 (9 May 2012 11:54:06 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Wed, 9 May 2012 11:54:06 +0000 (UTC) Cc: 6339@debbugs.gnu.org To: Chong Yidong Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Wed May 09 13:54:05 2012 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1SS5T2-0001mq-F5 for geb-bug-gnu-emacs@m.gmane.org; Wed, 09 May 2012 13:54:04 +0200 Original-Received: from localhost ([::1]:56772 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1SS5T1-00050d-M2 for geb-bug-gnu-emacs@m.gmane.org; Wed, 09 May 2012 07:54:03 -0400 Original-Received: from eggs.gnu.org ([208.118.235.92]:34552) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1SS5Sv-00050N-4B for bug-gnu-emacs@gnu.org; Wed, 09 May 2012 07:54:01 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1SS5So-0006PR-Ov for bug-gnu-emacs@gnu.org; Wed, 09 May 2012 07:53:56 -0400 Original-Received: from debbugs.gnu.org ([140.186.70.43]:41328) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1SS5So-0006P9-JK for bug-gnu-emacs@gnu.org; Wed, 09 May 2012 07:53:50 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.72) (envelope-from ) id 1SS5Uv-0001og-RX for bug-gnu-emacs@gnu.org; Wed, 09 May 2012 07:56: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: Wed, 09 May 2012 11:56: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.13365645436953 (code B ref 6339); Wed, 09 May 2012 11:56:01 +0000 Original-Received: (at 6339) by debbugs.gnu.org; 9 May 2012 11:55:43 +0000 Original-Received: from localhost ([127.0.0.1]:42362 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1SS5Uc-0001o6-5T for submit@debbugs.gnu.org; Wed, 09 May 2012 07:55:42 -0400 Original-Received: from mail-pb0-f44.google.com ([209.85.160.44]:63855) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1SS5UZ-0001nr-W5 for 6339@debbugs.gnu.org; Wed, 09 May 2012 07:55:41 -0400 Original-Received: by pbcwy7 with SMTP id wy7so375108pbc.3 for <6339@debbugs.gnu.org>; Wed, 09 May 2012 04:53:22 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc:content-type:content-transfer-encoding; bh=Mx7wA1fZB1BIqxFuxOFabxvbYaKg9OGS3UZH+oNc8Fg=; b=UGVNx10vxdTuDXnxZFL/pW/UVjisBGhpWVDsLfwXQ0EudK59TXsVRpCC4x2B65wNVz jekgxu4D1Kc0p6uAeRJHeoo3okimgqF9qVayYQkDE+tvtZht3dcMJNZj2OZL/j+TVAQD kEWhJvkLxm+r/aflBqrIxvXfWQkuOtYO9A9WVpjwlZrIOu1ndZMjTG4qQKn32RayoBsb e4AjO3PeVI3pYH1jnePSIQgRQHiw/5BJBQwW6w8e6CFeltRl0GX64VZ9vFAjaKeogPqz eaMO36Krn30YrtEA5AysTy/pfCxnFmA76qGfyFjBK+igYTrhKmfnLzrskRedfKlTBY0Z KfCw== Original-Received: by 10.68.236.165 with SMTP id uv5mr8399886pbc.37.1336564402234; Wed, 09 May 2012 04:53:22 -0700 (PDT) Original-Received: by 10.142.172.12 with HTTP; Wed, 9 May 2012 04:52:42 -0700 (PDT) In-Reply-To: <87sjf94tek.fsf@gnu.org> X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.13 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 2) 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:59886 Archived-At: On Wed, May 9, 2012 at 11:04 AM, Chong Yidong wrote: > In particular, RFC 3986 explicitly states that > > =C2=A0If a URI contains an authority component, then the path component m= ust > =C2=A0either be empty or begin with a slash ("/") character. > > That is to say, the / is part of the path. This means that it is part of the "path" component of the URI, used to separate and disambiguate, but does not say anything about how that is interpreted as a a filesystem path. In this case (with no authority): file:///C:/windows/path "/C:/windows/path" is the "path", but it is obviously not a filesystem path= . > So I think we should just explicitly state that the > FILENAME slot is really PATH and QUERY together, and wash our hands of > the matter. > > This also means that it should be up to callers to convert the FILENAME > slot (i.e. PATH and QUERY) into proper filenames. =C2=A0The translation f= rom > URIs to filenames is scheme-independent anyway, so it shouldn't be > handled at the level of url-generic-parse-url. I don't mind which way we fix it, but I'd be glad if we can avoid snarky and erroneous "Windows does this wrong" comments in the code while doing it... =C2=A0 =C2=A0 Juanma