GNOME Bugzilla – Bug 619629
Unable to open UTF8 filenames
Last modified: 2018-05-22 13:54:25 UTC
Evince does not handle UTF8 filenames properly in Windows. For example, try to open a file named "E:\test\电子书.pdf" on a non-chinese computer with a Windows OS (here Windows Seven x64 French). You receive the following error message : Unable to open document Error stating file 'E:\test\???.pdf': No such file or directory Same error for the following file : "E:\电子书\book.pdf" Renaming or moving the file so that it has a non-UTF8 path seems to be enough to open the file without errors. I noticed however that Evince 2.30.0 is able to open filenames containing accents where Evince 2.28.0 failed.
When I double click and files with Chinese names, Evince fails to open them. But when I start evince first and then use the File->Open menu option to open the same files, they open without problems. Gabriel, do you see this too? A problem here is that by double clicking a file you start Evince with the filename as its first argument. Evince uses GOption to handle the filename. Unfortunately, GOption does not handle chinese filenames very well. There is a bug about this at http://bugzilla-attachments.gnome.org/attachment.cgi?id=151608
I confirm that using File->Open OR drag n dropping a file into Evince is working and that only double-clicking a file with chinese characters isn't working. Is there a possible fix for that ?
We are hit by: https://bugzilla.gnome.org/show_bug.cgi?id=522131 I am working to fix this right now and I already have a proof of concept working. I expect this will be fixed by a workaround in the upcoming 2.30.2 Evince release.
Great ! Can't wait to try the new version :)
I confirm this bug, but I discovered the problem with a file containing a # in the name.
This should be fixed in the new 2.30.3 release. Download it from [1]. Please test and reopen this bug if the problem still occurs. [1] http://live.gnome.org/Evince/Downloads
Reopening this because I forgot that I only fixed this by a workaround: I am building a patch glib. Setting this to depend on bug 522131.
*** Bug 615809 has been marked as a duplicate of this bug. ***
-- GitLab Migration Automatic Message -- This bug has been migrated to GNOME's GitLab instance and has been closed from further activity. You can subscribe and participate further through the new bug through this link to our GitLab instance: https://gitlab.gnome.org/GNOME/evince/issues/155.