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 779430 - Sorting throws errors when filenames aren't UTF-8
Sorting throws errors when filenames aren't UTF-8
Status: RESOLVED NOTABUG
Product: evince
Classification: Core
Component: backends
3.20.x
Other Linux
: Normal normal
: ---
Assigned To: Evince Maintainers
Evince Maintainers
Depends on: 720742
Blocks:
 
 
Reported: 2017-03-01 18:10 UTC by Bastien Nocera
Modified: 2017-03-17 17:17 UTC
See Also:
GNOME target: ---
GNOME version: ---



Description Bastien Nocera 2017-03-01 18:10:33 UTC
+++ This bug was initially created as a clone of Bug #770695 +++

Bug 770695 started using g_utf8_collate_key_for_filename() to sort filenames inside archives, but that won't work as expected when the filenames aren't UTF-8 (and I expect it to throw a lot of warnings).

See also bug 766038, where we probably have problems parsing the output of "unzip" when the filenames aren't UTF-8, and bug 720742 which avoids those callouts (so would likely show the bug I'm reporting with the test case from the other).
Comment 1 Bastien Nocera 2017-03-17 17:17:35 UTC
libarchive will nicely mangle the filenames into something "UTF-8"-ey.

** (evince-thumbnailer:12539): DEBUG: At header for file 'Dream n\xf846 decembre 1997/Dream n\xf846.txt'
** (evince-thumbnailer:12539): DEBUG: At header for file 'Dream n\xf846 decembre 1997/Page 01.jpg'