~sourcemage/sorcery

c4b7e0066e80367e6206ce24e540fecaf2916c9c — Ismael Luceno 3 months ago bca927a master
libgpg: Fix LANGUAGE overriding LC_ALL

Fixes: da2b9f84a380 ("libmisc: introduce get_safe_locale and use it in cast, libgpg", 2020-03-18)
Fixes: 496fc22b0037 ("Fix build issues related to non-UTF-8 LC_ALL", 2018-03-10)
Fixes: 7aafabba713f ("libgpg: set LC_ALL=C for commands output of which we parse #14705", 2008-09-02)
1 files changed, 2 insertions(+), 1 deletions(-)

M var/lib/sorcery/modules/libgpg
M var/lib/sorcery/modules/libgpg => var/lib/sorcery/modules/libgpg +2 -1
@@ 49,7 49,8 @@ gpg_verify_signature() { # $1 sig $2 file $3 pubring $4 algo var
    return 200
  else
    local output=$TMP_DIR/$(smgl_basename $file).gpgout
    LC_ALL="$(get_safe_locale)" gpg --no-default-keyring  \
    LANGUAGE= LC_ALL="$(get_safe_locale)" \
    gpg        --no-default-keyring  \
               --always-trust        \
               --keyring $keyring    \
               --batch               \