From b6490d0e7bdbdce2bf6e05c6c5204cb1cd060bc7 Mon Sep 17 00:00:00 2001 From: Jonas Smedegaard Date: Wed, 5 Jun 2019 09:26:34 +0200 Subject: Use UTF-8 encoding in temporary LANG, and export it. --- localbackuppkglists | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/localbackuppkglists b/localbackuppkglists index 46240b3..58bb93b 100755 --- a/localbackuppkglists +++ b/localbackuppkglists @@ -52,7 +52,7 @@ fi tempdir="$(mktemp -td localpkglists.XXXXXX)" origlang="$LANG" -LANG='C' +export LANG='C.UTF-8' dpkg --get-selections > "$tempdir/dpkg-selections.txt" @@ -63,7 +63,7 @@ aptitude -F '%p#' search '!~i~Rrecommends:(~i)' > "$tempdir/aptitude-notinstalle debconf-get-selections > "$tempdir/debconf-questions.txt" debconf-get-selections --installer > "$tempdir/debconf-questions-di.txt" 2> /dev/null || true -LANG="$origlang" +export LANG="$origlang" if [ -n "$targetdir" ]; then mv "$tempdir" "$targetdir" -- cgit v1.2.3