From a1f727749ab36da8fe34733e1de52735538b137d Mon Sep 17 00:00:00 2001 From: Martijn Dekker Date: Sun, 31 Jan 2021 20:50:03 +0000 Subject: [PATCH] tests/locale.sh: disable en_US.UTF-8 spaces test This test depends on the correctness of the locale data provided by the OS, and some installations are broken. Failures of this test most likely do not represent a bug in ksh or libast. --- src/cmd/ksh93/tests/locale.sh | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/cmd/ksh93/tests/locale.sh b/src/cmd/ksh93/tests/locale.sh index 4cc2d9e4e..7d8d2e8b0 100755 --- a/src/cmd/ksh93/tests/locale.sh +++ b/src/cmd/ksh93/tests/locale.sh @@ -303,7 +303,8 @@ x=$(LC_ALL=debug $SHELL -c 'typeset -R10 x="a<2b|>c";print -r -- "${x}"') x=$(LC_ALL=debug $SHELL -c 'typeset -L10 x="a<2b|>c";print -r -- "${x}"') [[ $x == 'a<2b|>c ' ]] || err_exit 'typeset -L10 should end in three spaces' -if $SHELL -c "export LC_ALL=en_US.UTF-8; c=$'\342\202\254'; [[ \${#c} == 1 ]]" 2>/dev/null +if false && # Disable this test because it really test the OS-provided en_US.UTF-8 locale data, which may be broken. + $SHELL -c "export LC_ALL=en_US.UTF-8; c=$'\342\202\254'; [[ \${#c} == 1 ]]" 2>/dev/null then LC_ALL=en_US.UTF-8 unset i p1 p2 x for i in 9 b c d 20 2000 2001 2002 2003 2004 2005 2006 2008 2009 200a 2028 2029 3000 # 1680 1803 2007 202f 205f