[gnome-desktop/wip/hadess/force-thumbnailing-utf-8] thumbnail: Fix thumbnailing of CBZ with UTF-8 filenames




commit 0fffe97e647e9fb25a25bff953790eb2d9754bcc
Author: Bastien Nocera <hadess hadess net>
Date:   Tue Feb 23 14:17:39 2021 +0100

    thumbnail: Fix thumbnailing of CBZ with UTF-8 filenames
    
    Fix thumbnailing of CBZ comics with UTF-8 filenames, as libarchive will
    not be able to parse UTF-8 filenames if a UTF-8 locale is not used.
    
    This assumes that the C.UTF-8 locale is available on the host system,
    which shouldn't be a problem on systems able to run GNOME in the first
    place.
    
    See https://github.com/libarchive/libarchive/issues/587
    and https://github.com/flatpak/flatpak/pull/4138

 libgnome-desktop/gnome-desktop-thumbnail-script.c | 1 +
 1 file changed, 1 insertion(+)
---
diff --git a/libgnome-desktop/gnome-desktop-thumbnail-script.c 
b/libgnome-desktop/gnome-desktop-thumbnail-script.c
index 66b3db99..a21597a9 100644
--- a/libgnome-desktop/gnome-desktop-thumbnail-script.c
+++ b/libgnome-desktop/gnome-desktop-thumbnail-script.c
@@ -681,6 +681,7 @@ add_flatpak (GPtrArray   *array,
             "flatpak-spawn",
             "--clear-env",
             "--env=GIO_USE_VFS=local",
+            "--env=LC_ALL=C.UTF-8",
             NULL);
 
   add_flatpak_env (array, "G_MESSAGES_DEBUG");


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]