Denys Vlasenko | c538d5b | 2014-08-13 09:57:44 +0200 | [diff] [blame] | 1 | LANG=en_US.UTF-8 |
2 | |||||
3 | # A combining character U+300 | ||||
4 | a=`printf "\xcc\x80"` | ||||
5 | # Should print 1 | ||||
6 | echo ${#a} | ||||
7 | |||||
8 | # A Japanese katakana charachter U+30a3 | ||||
9 | a=`printf "\xe3\x82\xa3"` | ||||
10 | # Should print 1 | ||||
11 | echo ${#a} | ||||
12 | |||||
13 | echo Ok |