unofficial mirror of bug-gnu-emacs@gnu.org 
 help / color / mirror / code / Atom feed
From: Lars Ingebrigtsen <larsi@gnus.org>
To: Howard Melman <hmelman@gmail.com>
Cc: 50435@debbugs.gnu.org
Subject: bug#50435: 27.2; browse-url-encode-url not encoding spaces
Date: Tue, 07 Sep 2021 17:47:11 +0200	[thread overview]
Message-ID: <87y288bd6o.fsf@gnus.org> (raw)
In-Reply-To: <E1A101EF-12E4-4AC2-B3CF-665F540462A8@gmail.com> (Howard Melman's message of "Mon, 6 Sep 2021 14:06:33 -0400")

Howard Melman <hmelman@gmail.com> writes:

> I may be misunderstanding something, but
> browse-url-encode-url does not encode spaces.
>
>     (browse-url-encode-url "foo bar")
>
> returns "foo bar" and I think it should return "foo%20bar"
>
> It looks like a simple typo in browse-url-encode-url since it calls:
>
>   (browse-url-url-encode-chars url "[\")$] "))
>
> I think the space should be before the ], but from what I can 
> tell it's been that way since 2012.

browse-url-url-encode-chars was documented to take a string of
characters to translate, but used it as a regexp.  I've now fixed the
documentation and `browse-url-encode-url'.

> Also browse-url-encode-url is used in several browser
> specific browse-url functions like browse-url-netscape and
> browse-url-firefox but not in
> browse-url-default-windows-browser and
> browse-url-default-macosx-browser.  Is this intentional?
> I'm on a mac (using the macport) and it seems frustrating.

I've now fixed this in Emacs 28.

-- 
(domestic pets only, the antidote for overdose, milk.)
   bloggy blog: http://lars.ingebrigtsen.no





      parent reply	other threads:[~2021-09-07 15:47 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2021-09-06 18:06 bug#50435: 27.2; browse-url-encode-url not encoding spaces Howard Melman
2021-09-06 19:14 ` Andreas Schwab
2021-09-07 15:47 ` Lars Ingebrigtsen [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.gnu.org/software/emacs/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=87y288bd6o.fsf@gnus.org \
    --to=larsi@gnus.org \
    --cc=50435@debbugs.gnu.org \
    --cc=hmelman@gmail.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).