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: Mon, 26 Jul 2010 14:00:59 +0200 Message-ID: References: NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 X-Trace: dough.gmane.org 1280146077 13191 80.91.229.12 (26 Jul 2010 12:07:57 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Mon, 26 Jul 2010 12:07:57 +0000 (UTC) Cc: 6339@debbugs.gnu.org To: Juanma Barranquero Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Mon Jul 26 14:07:55 2010 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1OdMTH-0008Mw-Cn for geb-bug-gnu-emacs@m.gmane.org; Mon, 26 Jul 2010 14:07:51 +0200 Original-Received: from localhost ([127.0.0.1]:38237 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1OdMTG-0008J7-Gl for geb-bug-gnu-emacs@m.gmane.org; Mon, 26 Jul 2010 08:07:50 -0400 Original-Received: from [140.186.70.92] (port=40290 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1OdMT6-0008Ic-Ma for bug-gnu-emacs@gnu.org; Mon, 26 Jul 2010 08:07:45 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.69) (envelope-from ) id 1OdMT1-0006ji-2o for bug-gnu-emacs@gnu.org; Mon, 26 Jul 2010 08:07:40 -0400 Original-Received: from debbugs.gnu.org ([140.186.70.43]:34974) by eggs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1OdMT1-0006jc-1O for bug-gnu-emacs@gnu.org; Mon, 26 Jul 2010 08:07:35 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.69) (envelope-from ) id 1OdMNe-0002xE-MA; Mon, 26 Jul 2010 08:02:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Lennart Borgman Original-Sender: debbugs-submit-bounces@debbugs.gnu.org Resent-To: owner@debbugs.gnu.org Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Mon, 26 Jul 2010 12:02: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.128014567911343 (code B ref 6339); Mon, 26 Jul 2010 12:02:02 +0000 Original-Received: (at 6339) by debbugs.gnu.org; 26 Jul 2010 12:01: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 1OdMMw-0002wu-95 for submit@debbugs.gnu.org; Mon, 26 Jul 2010 08:01:19 -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 1OdMMu-0002wp-D8 for 6339@debbugs.gnu.org; Mon, 26 Jul 2010 08:01:17 -0400 Original-Received: by gyg8 with SMTP id 8so876595gyg.3 for <6339@debbugs.gnu.org>; Mon, 26 Jul 2010 05:01:21 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:mime-version:received:in-reply-to :references:from:date:message-id:subject:to:cc:content-type; bh=ZL7NlTEw5Otu86bTfJIYJjwzdYfxGcEwD4CYPDON554=; b=OHPv3lYYvy4rrOSlYvkKhU/Cup1FWumrjvbUJJPANMq+FSMSEcmajYDndFxCmytISg m20yqzz9XOo22nQ6LrYNTWmVCtsTM7hu4upDrtpSHKc6mZ61bBRi2LGwI6vpKV4RVoAw PqmzYP3VGs0KebUxuDLhrxIdohDvOtllvSh7k= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc:content-type; b=vmOJv6ODZI9rfYU/eHQRReH/okVpReL+ccI09S6sNtKXpClPaZBBkVPR0ljjoJ2Oyp xnSGNW65YsHCH6MGmyJxjy8Kq4QRdO3SP0Zwxew3xkz6nXt/+DmaReNIcjrnwsz4G06S Mane3iaHPW1cLZA/QuhDOViGwHdffgdna6Hh4= Original-Received: by 10.100.137.6 with SMTP id k6mr7699587and.146.1280145679151; Mon, 26 Jul 2010 05:01:19 -0700 (PDT) Original-Received: by 10.229.5.72 with HTTP; Mon, 26 Jul 2010 05:00:59 -0700 (PDT) In-Reply-To: X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.11 Precedence: list Resent-Date: Mon, 26 Jul 2010 08:02:02 -0400 X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 3) 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: , Original-Sender: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.bugs:38947 Archived-At: On Mon, Jul 26, 2010 at 1:50 PM, Juanma Barranquero wrote: > > The subyacent cause of the bug, IMHO, is that many software for POSIX > environments that parses URIs just takes the /PATH part as a whole > because it is easier than removing the slash and then re-adding it. > That breaks on Windows file: URIs, as this bug, and #5345, show. > > So the right fix IMO is as simple as the attached patch. The problem > is that it will likely cause trouble for other users of > url-generic-parse-url which wrongly assume that the path part will be > rooted at /. > > Another, hacky & ugly, fix is removing the slash only if the PATH part > matches /[A-Z]:. > > I'd rather fix it the good way and watch the fireworks. I agree.