diff options
author | Bastien Nocera <hadess@hadess.net> | 2021-02-23 14:17:39 +0100 |
---|---|---|
committer | Bastien Nocera <hadess@hadess.net> | 2021-02-23 14:17:39 +0100 |
commit | 0fffe97e647e9fb25a25bff953790eb2d9754bcc (patch) | |
tree | e9d5a7f01e2a2c2c87aeab2a1ccfa28986cdd07c | |
parent | bda611c10824d66d6b6ce0a223c8b4eb8966b523 (diff) | |
download | gnome-desktop-0fffe97e647e9fb25a25bff953790eb2d9754bcc.tar.gz |
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
-rw-r--r-- | libgnome-desktop/gnome-desktop-thumbnail-script.c | 1 |
1 files changed, 1 insertions, 0 deletions
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"); |