summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJim Meyering <jim@meyering.net>2002-11-19 14:07:20 +0000
committerJim Meyering <jim@meyering.net>2002-11-19 14:07:20 +0000
commitd38c17cdbc971452df13c76fed70c1d76ecfe352 (patch)
treee54e48715eb0f421c029e951dcd7ad44afac080b
parent6ba0925f2db477a245e8e75a33e1a80d40ea0dc9 (diff)
downloadcoreutils-d38c17cdbc971452df13c76fed70c1d76ecfe352.tar.xz
Export LC_ALL=C, to avoid failure when run in a UTF locale.
Report and suggested fix by Bruno Haible.
-rwxr-xr-xtests/sum/sysv6
1 files changed, 6 insertions, 0 deletions
diff --git a/tests/sum/sysv b/tests/sum/sysv
index cab25b153..39697bb73 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