diff options
author | Jonas Smedegaard <dr@jones.dk> | 2019-06-05 09:26:34 +0200 |
---|---|---|
committer | Jonas Smedegaard <dr@jones.dk> | 2019-06-05 09:26:34 +0200 |
commit | b6490d0e7bdbdce2bf6e05c6c5204cb1cd060bc7 (patch) | |
tree | 9f7cdf7f0262d01adca26df2ece48e5a735cdb67 /localbackuppkglists | |
parent | 980ff168e3b73e7977f263013649044214e8bd7f (diff) |
Use UTF-8 encoding in temporary LANG, and export it.
Diffstat (limited to 'localbackuppkglists')
-rwxr-xr-x | localbackuppkglists | 4 |
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" |