Lines Matching refs:LC_ALL
38 b=$($SHELL -c '(LC_ALL=debug / 2>/dev/null); /' 2>&1 | sed -e "s,.*: *,," -e "s, *\[.*,,")
40 b=$($SHELL -c '(LC_ALL=debug; / 2>/dev/null); /' 2>&1 | sed -e "s,.*: *,," -e "s, *\[.*,,")
48 do export LC_ALL=$locale
54 [[ $b == "$n" ]] || err_exit "LC_ALL=$locale printf difference for \"$s\" -- expected '$n', got '$b'"
57 [[ $u == "$q" ]] || err_exit "LC_ALL=$locale quoted print difference for \"$s\" -- $b => '$u' vs \"$b\" => '$q'"
67 export LC_ALL=C
71 c=$(LC_ALL=C $SHELL -c "printf $':%2s:\n' $'\303\274'")
72 u=$(LC_ALL=$locale $SHELL -c "printf $':%2s:\n' $'\303\274'" 2>/dev/null)
74 then LC_ALL=$locale
87 u=$(LC_ALL=$locale PS4='+$LINENO+ ' $SHELL -x -c "
96 [[ "$u" == "$x" ]] || err_exit LC_ALL=$locale multibyte value/trace format failed
99 u=$(LC_ALL=$locale $SHELL -c $'printf "%04x\n" \$\'\"\303\274\"\' \$\'\"\xE2\x82\xAC\"\'')
100 [[ $u == $x ]] || err_exit LC_ALL=$locale multibyte %04x printf format failed
103 if (( $($SHELL -c $'export LC_ALL='$locale$'; print -r "\342\202\254\342\202\254\342\202\254\342\202\254w\342\202\254\342\202\254\342\202\254\342\202\254" | wc -m' 2>/dev/null) == 10 ))
104 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'
113 export LC_ALL=C
115 unset LC_ALL
117 export LC_ALL=C
121 [[ $got == $exp ]] || err_exit "command wc LC_ALL default failed -- expected '$exp', got '$got'"
126 export LC_ALL=C
128 unset LC_ALL
130 export LC_ALL=C
135 [[ $got == $exp ]] || err_exit "builtin wc LC_ALL default failed -- expected '$exp', got '$got'"
151 LC_ALL=$locale $SHELL < ko.dat 2> /dev/null || err_exit "script with multibyte char straddling buffer boundary fails"
153 # exp LC_ALL LC_NUMERIC LANG
163 unset LC_ALL LC_NUMERIC LANG
170 [[ $2 ]] && V[0]="export LC_ALL=$2;"
192 # setocale(LC_ALL,"") after setlocale() initialization
197 print "export LC_ALL=$locale
203 [[ $got == "$exp" ]] || err_exit "LC_ALL test script failed -- expected '$exp', got '$got'"
208 got=$(LC_ALL=C.UTF-8 $SHELL -c $'\u[5929]=OK; print ${\u[5929]}' 2>&1)
210 got=$(LC_ALL=C.UTF-8 $SHELL -c $'function \u[5929]\n{\nprint OK;\n}; \u[5929]' 2>&1)
212 got=$(LC_ALL=C.UTF-8 $SHELL -c $'\u[5929]()\n{\nprint OK;\n}; \u[5929]' 2>&1)
221 if [[ "$(LC_ALL=$locale $SHELL <<- \+EOF+
232 "cd $dir; export LC_ALL=debug; cd $dir" \
233 "cd $dir; LC_ALL=debug cd $dir" \
239 for lc in LANG LC_MESSAGES LC_ALL
260 got=$(LC_ALL=debug $SHELL -c "a<2A@>z=$exp; print \$a<2A@>z")
263 unset LC_ALL LC_MESSAGES
290 LC_ALL=C
307 x=$( LC_ALL=debug $SHELL ./script$$.1)
312 x=$(LC_ALL=debug $SHELL -c 'x="a<2b|>c";print -r -- ${#x}')
314 x=$(LC_ALL=debug $SHELL -c 'typeset -R10 x="a<2b|>c";print -r -- "${x}"')
316 x=$(LC_ALL=debug $SHELL -c 'typeset -L10 x="a<2b|>c";print -r -- "${x}"')
319 if $SHELL -c "export LC_ALL=en_US.UTF-8; c=$'\342\202\254'; [[ \${#c} == 1 ]]" 2>/dev/null
320 then LC_ALL=en_US.UTF-8
332 err_exit "unicode char$p1 ${x#?} $p2 in locale $LC_ALL"