> Don't be--there's been a lot of work done to make glibc honor locales. > OK. If strncpy() recognizes n characters encoded in utf-8, it means that when it reads the bytes, leading and trailing bytes are detected/understood. There is some utf-8 decoding operation going on. In this case, why strlen() can count only bytes?
Francois -- Linux-UTF8: i18n of Linux on all levels Archive: http://mail.nl.linux.org/linux-utf8/