After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 619629 - Unable to open UTF8 filenames
Unable to open UTF8 filenames
Status: RESOLVED OBSOLETE
Product: evince
Classification: Core
Component: win32
2.30.x
Other Windows
: Normal minor
: ---
Assigned To: Evince Maintainers
Evince Maintainers
: 615809 (view as bug list)
Depends on: 522131
Blocks:
 
 
Reported: 2010-05-25 16:13 UTC by Gabriel Hautclocq
Modified: 2018-05-22 13:54 UTC
See Also:
GNOME target: ---
GNOME version: ---



Description Gabriel Hautclocq 2010-05-25 16:13:56 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.
Comment 1 Hib Eris 2010-05-29 19:13:34 UTC
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
Comment 2 Gabriel Hautclocq 2010-06-01 09:16:51 UTC
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 ?
Comment 3 Hib Eris 2010-06-01 09:35:30 UTC
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.
Comment 4 Gabriel Hautclocq 2010-06-01 09:59:18 UTC
Great ! Can't wait to try the new version :)
Comment 5 Mathias Nedrebø 2010-06-16 09:37:13 UTC
I confirm this bug, but I discovered the problem with a file containing a # in the name.
Comment 6 Hib Eris 2010-07-27 11:51:23 UTC
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
Comment 7 Hib Eris 2010-07-27 11:55:54 UTC
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.
Comment 8 Hib Eris 2010-07-27 11:59:56 UTC
*** Bug 615809 has been marked as a duplicate of this bug. ***
Comment 9 GNOME Infrastructure Team 2018-05-22 13:54:25 UTC
-- 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.