[Date Prev][Date Next][Thread Prev][][Date Index][Thread Index]

Re: Bug#457909: Changes + to space in URLs

>>>>> Trent W. Buck wrote:

> I regularly use y (w3m-print-current-url) to display the URL at point
> in the echo area.  I then use Screen's C-a [ (copy) to copy-and-paste
> the URL into a non-Emacs window running, say, wget.

> I noticed that for URLs like

>     https://bugs.launchpad.net/ubuntu/+source/linux-source-2.6.15/+bug/54419

> ...the +'s are replaced with spaces, resulting in a *wrong* URL.

The behavior of the function in question (w3m-url-decode-string)
has never changed basically since it was introduced in August,
2001.  I'm not sure whether replacing +'s with spaces is wrong
but I believe it is done for a user to view with the eyes, not
for copying a url.  The function does not only replacing +'s
with spaces but also decoding characters that are represented in
the hexadecimal form.  In the later case, it might fail in
copying a url displayed in the echo area to the other client
because of non-ASCII characters.  Therefore, I think the best
way for you is to not decode urls that are displayed in the echo
area.  To do that:

(setq w3m-show-decoded-url nil)