diff options
author | Jim Meyering <jim@meyering.net> | 2002-11-19 14:07:20 +0000 |
---|---|---|
committer | Jim Meyering <jim@meyering.net> | 2002-11-19 14:07:20 +0000 |
commit | d38c17cdbc971452df13c76fed70c1d76ecfe352 (patch) | |
tree | e54e48715eb0f421c029e951dcd7ad44afac080b /tests | |
parent | 6ba0925f2db477a245e8e75a33e1a80d40ea0dc9 (diff) | |
download | coreutils-d38c17cdbc971452df13c76fed70c1d76ecfe352.tar.xz |
Export LC_ALL=C, to avoid failure when run in a UTF locale.
Report and suggested fix by Bruno Haible.
Diffstat (limited to 'tests')
-rwxr-xr-x | tests/sum/sysv | 6 |
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 |