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 00:45:17 +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 1316645215 2267 80.91.229.12 (21 Sep 2011 22:46:55 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Wed, 21 Sep 2011 22:46:55 +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 00:46: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 1R6VZ3-0004pQ-Bp for geb-bug-gnu-emacs@m.gmane.org; Thu, 22 Sep 2011 00:46:49 +0200 Original-Received: from localhost ([::1]:40363 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1R6VZ2-0007e0-Kc for geb-bug-gnu-emacs@m.gmane.org; Wed, 21 Sep 2011 18:46:48 -0400 Original-Received: from eggs.gnu.org ([140.186.70.92]:36079) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1R6VZ0-0007dv-4y for bug-gnu-emacs@gnu.org; Wed, 21 Sep 2011 18:46:47 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1R6VYz-00057R-3h for bug-gnu-emacs@gnu.org; Wed, 21 Sep 2011 18:46:46 -0400 Original-Received: from debbugs.gnu.org ([140.186.70.43]:58474) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1R6VYz-00057M-0n for bug-gnu-emacs@gnu.org; Wed, 21 Sep 2011 18:46:45 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.69) (envelope-from ) id 1R6VZF-0003cJ-Po for bug-gnu-emacs@gnu.org; Wed, 21 Sep 2011 18:47: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, 21 Sep 2011 22:47: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.131664517913835 (code B ref 6339); Wed, 21 Sep 2011 22:47:01 +0000 Original-Received: (at 6339) by debbugs.gnu.org; 21 Sep 2011 22:46:19 +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 1R6VYY-0003b6-W8 for submit@debbugs.gnu.org; Wed, 21 Sep 2011 18:46:19 -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 1R6VYV-0003au-4C for 6339@debbugs.gnu.org; Wed, 21 Sep 2011 18:46:16 -0400 Original-Received: by pzk37 with SMTP id 37so3197960pzk.9 for <6339@debbugs.gnu.org>; Wed, 21 Sep 2011 15:45:57 -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=ZJCRGXYtpgU2fvxR5xLDfifhI6R4DV7vQBM6iz4O/pI=; b=Krg+HeZVAYKpBxx0bJSmIGRNg3RL+ma8lNI7yq8kmmKdRTmfeRFEMpYsNL7R5FsXr3 MLheGkxA0JqZyoV5qncKXxPHwSkiL0tFJz9k1a1QBZmw/KQMhzD7qpEENItVDSKYwpbW 17yZwZyBUEQUxbhTYAZWo5FdE084yvpvHBBMk= Original-Received: by 10.68.44.225 with SMTP id h1mr49362pbm.85.1316645157070; Wed, 21 Sep 2011 15:45:57 -0700 (PDT) Original-Received: by 10.142.223.13 with HTTP; Wed, 21 Sep 2011 15:45:17 -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:47: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:51620 Archived-At: 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. (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. 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? > 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. =C2=A0 =C2=A0 Juanma