Handling unicode strings in C.

view full story

https://bbs.archlinux.org – Never tried it, but at least locale-gen doesn't seem to like utf-16...Remember that what applies to C, doesn't only apply to the language, but to all programs written in a language where strings work in a similar way (even if only internally).Meaning, if you were to use a utf-16 terminal, and were to type "echo Hello", you might only get it to print "H", or garbage, since it probably outputs { 'H', '\n' }. Unless the locale is understood by echo, or rather the shell (since usually the shell doesn't actually execute a *program* named echo.. (HowTos)