GNOME Bugzilla – Bug 693794
Evince incorrectly reports document Location in its Properties if there are % in filename
Last modified: 2013-02-17 11:45:41 UTC
Created attachment 236057 [details] File and Properties dialog for file with % in its name I have a file named art%3A10.1007%2FBF01034471.pdf, if I open document Properties (Alt+Return) for it I get Location: file:///home/norbert/Documents/PDFs/art%253A10.1007%252FBF01034471.pdf. So there are extra escape sequences for percent sign (I know that %25 is a code for %). If I try to ls -l /home/norbert/Documents/PDFs/art%253A10.1007%252FBF01034471.pdf I got ls: cannot access /home/filename/Documents/PDFs/art%253A10.1007%252FBF01034471.pdf: No such file or directory. If I try to navigate to correct file /home/username/Documents/PDFs/art%3A10.1007%2FBF01034471.pdf I get no error. So there is an error in % sign processing in evince. See my screenshot to understand what I mean. If I try to open a file, which path is in Location field of Properties window - file:///home/norbert/Documents/PDFs/art%253A10.1007%252FBF01034471.pdf, I get an error - "Unable to open document". I tried to create a file with ~/%.pdf filename and get Location file:///home/norbert/%25.pdf for it in Properties window (evince reports not existed file). This bug was discovered on Ubuntu 12.04 (https://bugs.launchpad.net/ubuntu/+source/evince/+bug/1112641).
This bug exists in evince 3.6.1 (Fedora 18), evince 3.4.0 (OpenSuSe 12.2 and Ubuntu 12.04).
This bug exists since Evince 2.32 (Gentoo ebuild evince-2.32.0-r4).
Created attachment 236401 [details] [review] Unescape location URI in properties dialog The URI is not used in any other place, so it could be unescaped to show it in the properties dialog. I am not user if some characters should be declared illegal or not.
Hello, Germán! I patched src-package on Ubuntu 12.04 (Evince 3.4.0), your patch fixes this bug, thank you. Please apply patch to actual versions.
Review of attachment 236401 [details] [review]: Thanks!
Thank you, Carlos!