]> git.ipfire.org Git - thirdparty/bash.git/blame - tests/intl3.sub
commit bash-20150417 snapshot
[thirdparty/bash.git] / tests / intl3.sub
CommitLineData
85ec0778
CR
1. ./test-glue-functions
2
06c3a575
CR
3# more tests to make sure that IFS splits on characters, not bytes
4export LANG=en_US.UTF-8
5
6euro=$'\342\202\254'
7o342=$'\342'
8o202=$'\202'
9o254=$'\254'
10
11IFS=$o254
12t=+$euro+
13set -- $t
14
15echo "$#"
16
17# but matching still occurs on bytes if we don't have a valid multibyte char
18case $euro in
19*$o202*) echo bytematch ;;
20*) echo mbchar match ;;
21esac
22
85ec0778 23echo "${euro##*$o202}" | od -b | _intl_normalize_spaces