summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rwxr-xr-xlocalbackuppkglists4
1 files 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"