Blame SOURCES/ksh-20100826-fixregr.patch

ff22b9
diff -up ksh-20120801/src/cmd/ksh93/tests/builtins.sh.fixregr ksh-20120801/src/cmd/ksh93/tests/builtins.sh
ff22b9
--- ksh-20120801/src/cmd/ksh93/tests/builtins.sh.fixregr	2012-07-16 17:23:56.000000000 +0200
ff22b9
+++ ksh-20120801/src/cmd/ksh93/tests/builtins.sh	2012-08-08 12:29:00.733243019 +0200
ff22b9
@@ -303,9 +303,9 @@ then	err_exit "printf '%..*s' not workin
ff22b9
 fi
ff22b9
 [[ $(printf '%q\n') == '' ]] || err_exit 'printf "%q" with missing arguments'
ff22b9
 # we won't get hit by the one second boundary twice, right?
ff22b9
-[[ $(printf '%T\n' now) == "$(date)" ]] ||
ff22b9
-[[ $(printf '%T\n' now) == "$(date)" ]] ||
ff22b9
-err_exit 'printf "%T" now'
ff22b9
+[[ $(printf '%T\n' now | sed 's/GMT/UTC/') == "$(date)" ]] ||
ff22b9
+[[ $(printf '%T\n' now | sed 's/GMT/UTC/') == "$(date)" ]] ||
ff22b9
+err_exit 'printf "%T" now = '"$(printf '%T\n' now) != $(date)"
ff22b9
 behead()
ff22b9
 {
ff22b9
 	read line
ff22b9
diff -up ksh-20120801/src/cmd/ksh93/tests/locale.sh.fixregr ksh-20120801/src/cmd/ksh93/tests/locale.sh
ff22b9
--- ksh-20120801/src/cmd/ksh93/tests/locale.sh.fixregr	2012-06-26 21:57:46.000000000 +0200
ff22b9
+++ ksh-20120801/src/cmd/ksh93/tests/locale.sh	2012-08-08 12:29:20.039405240 +0200
ff22b9
@@ -104,6 +104,7 @@ if	(( $($SHELL -c $'export LC_ALL='$loca
ff22b9
 then	LC_ALL=$locale $SHELL -c b1=$'"\342\202\254\342\202\254\342\202\254\342\202\254w\342\202\254\342\202\254\342\202\254\342\202\254"; [[ ${b1:4:1} == w ]]' || err_exit 'multibyte ${var:offset:len} not working correctly'
ff22b9
 fi
ff22b9
 
ff22b9
+locale=en_US.UTF-8
ff22b9
 #$SHELL -c 'export LANG='$locale'; printf "\u[20ac]\u[20ac]" > $tmp/two_euro_chars.txt'
ff22b9
 printf $'\342\202\254\342\202\254' > $tmp/two_euro_chars.txt
ff22b9
 exp="6 2 6"
ff22b9
@@ -111,11 +112,11 @@ set -- $($SHELL -c "
ff22b9
 	unset LC_CTYPE
ff22b9
 	export LANG=$locale
ff22b9
 	export LC_ALL=C
ff22b9
-	command wc -C < $tmp/two_euro_chars.txt
ff22b9
+	command wc -m < $tmp/two_euro_chars.txt
ff22b9
 	unset LC_ALL
ff22b9
-	command wc -C < $tmp/two_euro_chars.txt
ff22b9
+	command wc -m < $tmp/two_euro_chars.txt
ff22b9
 	export LC_ALL=C
ff22b9
-	command wc -C < $tmp/two_euro_chars.txt
ff22b9
+	command wc -m < $tmp/two_euro_chars.txt
ff22b9
 ")
ff22b9
 got=$*
ff22b9
 [[ $got == $exp ]] || err_exit "command wc LC_ALL default failed -- expected '$exp', got '$got'"
ff22b9
@@ -134,6 +135,8 @@ set -- $($SHELL -c "
ff22b9
 got=$*
ff22b9
 [[ $got == $exp ]] || err_exit "builtin wc LC_ALL default failed -- expected '$exp', got '$got'"
ff22b9
 
ff22b9
+locale=C_EU.UTF-8
ff22b9
+
ff22b9
 # multibyte char straddling buffer boundary
ff22b9
 
ff22b9
 {
ff22b9
@@ -190,6 +193,7 @@ do	exp=$1
ff22b9
 done
ff22b9
 
ff22b9
 # setocale(LC_ALL,"") after setlocale() initialization
ff22b9
+locale=en_US.UTF-8
ff22b9
 
ff22b9
 printf 'f1\357\274\240f2\n' > input1
ff22b9
 printf 't2\357\274\240f1\n' > input2
ff22b9
@@ -336,7 +340,7 @@ then	LC_ALL=en_US.UTF-8
ff22b9
 	[[ $(print -r -- "$x") == $'hello\u[20ac]\xee world' ]] || err_exit '%q with unicode and non-unicode not working'
ff22b9
 	if	[[ $(whence od) ]]
ff22b9
 	then	got='68 65 6c 6c 6f e2 82 ac ee 20 77 6f 72 6c 64 0a'
ff22b9
-		[[ $(print -r -- "$x" | od -An -tx1) == "$got" ]] || err_exit "incorrect string from printf %q"
ff22b9
+		[[ $(print -r -- "$x" | od -An -tx1) =~ $got ]] || err_exit "incorrect string from printf %q"
ff22b9
 	fi
ff22b9
 	
ff22b9
 fi