From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.ciao.gmane.io!not-for-mail From: larice Newsgroups: gmane.emacs.bugs Subject: bug#40241: 26.1; browse-url, needs to % hex hex encode the hash char Date: Thu, 26 Mar 2020 11:16:05 +0100 Message-ID: Mime-Version: 1.0 Content-Type: text/plain Injection-Info: ciao.gmane.io; posting-host="ciao.gmane.io:159.69.161.202"; logging-data="118482"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/26.1 (gnu/linux) To: 40241@debbugs.gnu.org Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Thu Mar 26 16:31:14 2020 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane-mx.org Original-Received: from lists.gnu.org ([209.51.188.17]) by ciao.gmane.io with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1jHUTR-000Uho-Fj for geb-bug-gnu-emacs@m.gmane-mx.org; Thu, 26 Mar 2020 16:31:13 +0100 Original-Received: from localhost ([::1]:55414 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1jHUTQ-0004YE-Fk for geb-bug-gnu-emacs@m.gmane-mx.org; Thu, 26 Mar 2020 11:31:12 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:53402) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1jHUTH-0004XM-8i for bug-gnu-emacs@gnu.org; Thu, 26 Mar 2020 11:31:04 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1jHUTG-0008Bh-7Y for bug-gnu-emacs@gnu.org; Thu, 26 Mar 2020 11:31:03 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]:53541) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1jHUTG-0008BW-3z for bug-gnu-emacs@gnu.org; Thu, 26 Mar 2020 11:31:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1jHUTG-00078h-18 for bug-gnu-emacs@gnu.org; Thu, 26 Mar 2020 11:31:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: larice Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Thu, 26 Mar 2020 15:31:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 40241 X-GNU-PR-Package: emacs X-Debbugs-Original-To: bug-gnu-emacs@gnu.org Original-Received: via spool by submit@debbugs.gnu.org id=B.158523660627281 (code B ref -1); Thu, 26 Mar 2020 15:31:01 +0000 Original-Received: (at submit) by debbugs.gnu.org; 26 Mar 2020 15:30:06 +0000 Original-Received: from localhost ([127.0.0.1]:59512 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1jHUSL-00075w-KV for submit@debbugs.gnu.org; Thu, 26 Mar 2020 11:30:06 -0400 Original-Received: from lists.gnu.org ([209.51.188.17]:56515) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1jHPYb-0004fG-FZ for submit@debbugs.gnu.org; Thu, 26 Mar 2020 06:16:13 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:52210) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1jHPYa-00008H-E8 for bug-gnu-emacs@gnu.org; Thu, 26 Mar 2020 06:16:13 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1jHPYY-0005nQ-TG for bug-gnu-emacs@gnu.org; Thu, 26 Mar 2020 06:16:11 -0400 Original-Received: from relay.ccn.net ([2001:1a30:0:110::22]:53951) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1jHPYY-0005iJ-KZ for bug-gnu-emacs@gnu.org; Thu, 26 Mar 2020 06:16:10 -0400 Original-Received: from ryzok (p5B023CA0.dip0.t-ipconnect.de [91.2.60.160]) (authenticated bits=0) by relay.ccn.net (8.15.2/8.15.2) with ESMTPSA id 02QAG5MS001525 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT) for ; Thu, 26 Mar 2020 11:16:05 +0100 (CET) X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] [fuzzy] X-Mailman-Approved-At: Thu, 26 Mar 2020 11:30:04 -0400 X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 209.51.188.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-mx.org@gnu.org Original-Sender: "bug-gnu-emacs" Xref: news.gmane.io gmane.emacs.bugs:177747 Archived-At: Dear Maintainers, I couldn't open a link in org mode, which happened to contain a hash char #. A search for the culprit revealed usage of this (setq url (browse-url-encode-url url)) in several functions, for example in browse-url-firefox in file browse-url.el This function looks like: (defun browse-url-encode-url (url) "Escape annoying characters in URL. The annoying characters are those that can mislead a web browser regarding its parameter treatment." ;; FIXME: Is there an actual example of a web browser getting ;; confused? (This used to encode commas, but at least Firefox ;; handles commas correctly and doesn't accept encoded commas.) (browse-url-url-encode-chars url "[\")$] ")) I suggest to add the char '#' to the second argument of the browse-url-url-encode-chars invocation to fix the nuisance. Best Regards, Robert Larice