From: Jim Meyering Date: Tue, 19 Nov 2002 14:07:20 +0000 (+0000) Subject: Export LC_ALL=C, to avoid failure when run in a UTF locale. X-Git-Tag: v4.5.4~207 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=d38c17cdbc971452df13c76fed70c1d76ecfe352;p=thirdparty%2Fcoreutils.git Export LC_ALL=C, to avoid failure when run in a UTF locale. Report and suggested fix by Bruno Haible. --- diff --git a/tests/sum/sysv b/tests/sum/sysv index cab25b1537..39697bb737 100755 --- a/tests/sum/sysv +++ b/tests/sum/sysv @@ -13,6 +13,12 @@ case "$PERL" in ;; esac +# Avoid a problem when run in a UTF-8 locale. +# Otherwise, Perl would try to (and fail to) interpret +# each string below as a sequence of multi-byte characters. +LC_ALL=C +export LC_ALL + pwd=`pwd` tmp=sum-s.$$ trap 'status=$?; cd $pwd; rm -rf $tmp && exit $status' 0