Denys Vlasenko | a62bc80 | 2016-10-03 00:06:55 +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 |