]> git.ipfire.org Git - thirdparty/coreutils.git/commitdiff
Export LC_ALL=C, to avoid failure when run in a UTF locale.
authorJim Meyering <jim@meyering.net>
Tue, 19 Nov 2002 14:07:20 +0000 (14:07 +0000)
committerJim Meyering <jim@meyering.net>
Tue, 19 Nov 2002 14:07:20 +0000 (14:07 +0000)
Report and suggested fix by Bruno Haible.

tests/sum/sysv

index cab25b15371e43783b3149b7f70a0d63053e0ef4..39697bb737be195a9af51457ee2a7ec61941377d 100755 (executable)
@@ -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