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 | |||||
Denys Vlasenko | 10ad622 | 2017-04-17 16:13:32 +0200 | [diff] [blame^] | 8 | # A Japanese katakana character U+30a3 |
Denys Vlasenko | c538d5b | 2014-08-13 09:57:44 +0200 | [diff] [blame] | 9 | a=`printf "\xe3\x82\xa3"` |
10 | # Should print 1 | ||||
11 | echo ${#a} | ||||
12 | |||||
13 | echo Ok |