From: Ivo Tadeu <ivotade@gmail.com>
To: 55429@debbugs.gnu.org
Subject: bug#55429: 27.1; browse-url-of-dired-file fails to open file with '#' character
Date: Sun, 15 May 2022 10:33:46 -0300 [thread overview]
Message-ID: <f94fff00-2b2f-b568-2980-26531e225fec@gmail.com> (raw)
When you use W in a dired buffer to open a file with the '#' character,
the file doesn't get opened. In my limited testing, the problem appears
to be in the function `browse-url-file-url':
(browse-url-file-url "/home/ivo/tmp/file with spaces.txt")
=> "file:///home/ivo/tmp/file%20with%20spaces.txt"
(browse-url-file-url "/home/ivo/tmp/file with #.txt")
=> "file:///home/ivo/tmp/file%20with%20#.txt"
When I use xdg-open directly with these urls, the second one will
fail. It appears that the '#' should also be percent-encoded.
Tested with emacs -Q
In GNU Emacs 27.1 (build 1, x86_64-pc-linux-gnu, GTK+ Version 3.24.24,
cairo version 1.16.0)
of 2021-03-27, modified by Debian built on x86-conova-01
Windowing system distributor 'The X.Org Foundation', version 11.0.12011000
System Description: Debian GNU/Linux 11 (bullseye)
next reply other threads:[~2022-05-15 13:33 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2022-05-15 13:33 Ivo Tadeu [this message]
2022-05-15 15:34 ` bug#55429: 27.1; browse-url-of-dired-file fails to open file with '#' character Lars Ingebrigtsen
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
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=f94fff00-2b2f-b568-2980-26531e225fec@gmail.com \
--to=ivotade@gmail.com \
--cc=55429@debbugs.gnu.org \
/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 external index
https://git.savannah.gnu.org/cgit/emacs.git
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.