[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
bug#6339: url-filename => "/c:/some/file.txt"
From: |
Lars Magne Ingebrigtsen |
Subject: |
bug#6339: url-filename => "/c:/some/file.txt" |
Date: |
Wed, 21 Sep 2011 22:28:17 +0200 |
User-agent: |
Gnus/5.110018 (No Gnus v0.18) Emacs/24.0.50 (gnu/linux) |
Juanma Barranquero <lekktu@gmail.com> writes:
> On Thu, Jun 3, 2010 at 04:38, Lennart Borgman <lennart.borgman@gmail.com>
> wrote:
>
>> (setq x (url-generic-parse-url "file:///c:/some/file.txt"))
>> (url-filename x) => "/c:/some/file.txt"
>>
>> Should not that be "c:/some/file.txt"?
[...]
> I'd rather fix it the good way and watch the fireworks.
>
> Juanma
>
> === modified file 'lisp/url/url-parse.el'
> --- lisp/url/url-parse.el 2010-06-22 16:48:53 +0000
> +++ lisp/url/url-parse.el 2010-07-26 11:46:11 +0000
> @@ -148,4 +148,5 @@
> ;; 3.3. Path
> + (when (looking-at "/") (forward-char 1))
> ;; Gross hack to preserve ';' in data URLs
> (setq save-pos (point))
If I say:
(setq x (url-generic-parse-url "file:///home/larsi/foo.txt"))
Then I get
(url-filename x)
=> "/home/larsi/foo.txt"
as expected. Would your patch break that?
--
(domestic pets only, the antidote for overdose, milk.)
bloggy blog http://lars.ingebrigtsen.no/
- bug#6339: url-filename => "/c:/some/file.txt",
Lars Magne Ingebrigtsen <=
- bug#6339: url-filename => "/c:/some/file.txt", Juanma Barranquero, 2011/09/21
- bug#6339: url-filename => "/c:/some/file.txt", Lennart Borgman, 2011/09/21
- bug#6339: url-filename => "/c:/some/file.txt", Juanma Barranquero, 2011/09/21
- bug#6339: url-filename => "/c:/some/file.txt", Lennart Borgman, 2011/09/21
- bug#6339: url-filename => "/c:/some/file.txt", Juanma Barranquero, 2011/09/21
- bug#6339: url-filename => "/c:/some/file.txt", Lennart Borgman, 2011/09/21
- bug#6339: url-filename => "/c:/some/file.txt", Juanma Barranquero, 2011/09/21
- bug#6339: url-filename => "/c:/some/file.txt", Lennart Borgman, 2011/09/21
- bug#6339: url-filename => "/c:/some/file.txt", Juanma Barranquero, 2011/09/21
- bug#6339: url-filename => "/c:/some/file.txt", Lennart Borgman, 2011/09/21