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