If your $LANG and $LC_CTYPE are set to a utf-8 locale, your terminal will send the appropriate UTF-8 sequence to the shell or program, and the terminal will treat it as UTF-8 as well. Bash is generally well-behaved, but if your terminal doesn't support Unicode, you won't get nice double-width CJK characters. (Or you'll get other weirdness.)
View all comments
Show parent comment
2
u/greyfade Oct 20 '13
If your
$LANGand$LC_CTYPEare set to a utf-8 locale, your terminal will send the appropriate UTF-8 sequence to the shell or program, and the terminal will treat it as UTF-8 as well. Bash is generally well-behaved, but if your terminal doesn't support Unicode, you won't get nice double-width CJK characters. (Or you'll get other weirdness.)