Lines Matching refs:locale
39 [[ "$b" == "$a" ]] || err_exit "locale not restored after subshell -- expected '$a', got '$b'"
41 [[ "$b" == "$a" ]] || err_exit "locale not restored after subshell -- expected '$a', got '$b'"
47 for locale in $(PATH=/bin:/usr/bin locale -a 2>/dev/null | grep -i jis)
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'"
62 # this locale is supported by ast on all platforms
65 locale=C_EU.UTF-8
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'
107 #$SHELL -c 'export LANG='$locale'; printf "\u[20ac]\u[20ac]" > $tmp/two_euro_chars.txt'
112 export LANG=$locale
125 export LANG=$locale
151 LC_ALL=$locale $SHELL < ko.dat 2> /dev/null || err_exit "script with multibyte char straddling buffer boundary fails"
155 2,5 $locale C '' \
156 2.5 C $locale '' \
157 2,5 $locale '' C \
158 2,5 '' $locale C \
159 2.5 C '' $locale \
160 2.5 '' C $locale \
197 print "export LC_ALL=$locale
215 # this locale is supported by ast on all platforms
219 locale=debug
221 if [[ "$(LC_ALL=$locale $SHELL <<- \+EOF+
240 do for cmd in "($lc=$locale;cd $dir)" "$lc=$locale;cd $dir;unset $lc" "function tst { typeset $lc=$locale;cd $dir; }; tst"
261 [[ $got == $exp ]] || err_exit "multibyte debug locale \$a<2A@>z failed -- expected '$exp', got '$got'"
308 [[ ${#x} == 8641 ]] || err_exit 'here doc contains wrong number of chars with multibyte locale'
332 err_exit "unicode char$p1 ${x#?} $p2 in locale $LC_ALL"