mirror of
git://git.sv.gnu.org/coreutils.git
synced 2026-07-26 02:30:35 +02:00
Export LC_ALL=C, to avoid failure when run in a UTF locale.
Report and suggested fix by Bruno Haible.
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user