On Mon, Aug 11, 2014 at 08:31 PM, Denys Vlasenko said: > Or am I missing something? Do we also have a bug in > CONFIG_UNICODE_USING_LOCALE=y case?
Here are my results running different busybox using glibc from the command line with various UNICODE configurations. If sed is working the result will be 16, not 30: /live/busybox-bin/busybox.always using sed 's/./x/g': 30 using wc -m: 16 CONFIG_UNICODE_SUPPORT=y CONFIG_FEATURE_CHECK_UNICODE_IN_ENV=y CONFIG_UNICODE_WIDE_WCHARS=y CONFIG_UNICODE_PRESERVE_BROKEN=y /live/busybox-bin/busybox.always-loc using sed 's/./x/g': 16 using wc -m: 16 CONFIG_UNICODE_SUPPORT=y CONFIG_FEATURE_CHECK_UNICODE_IN_ENV=y CONFIG_UNICODE_WIDE_WCHARS=y CONFIG_UNICODE_PRESERVE_BROKEN=y /live/busybox-bin/busybox.env using sed 's/./x/g': 30 using wc -m: 16 CONFIG_UNICODE_SUPPORT=y CONFIG_FEATURE_CHECK_UNICODE_IN_ENV=y CONFIG_UNICODE_WIDE_WCHARS=y CONFIG_UNICODE_PRESERVE_BROKEN=y /live/busybox-bin/busybox.loc using sed 's/./x/g': 16 using wc -m: 16 CONFIG_UNICODE_SUPPORT=y CONFIG_UNICODE_USING_LOCALE=y CONFIG_UNICODE_WIDE_WCHARS=y CONFIG_UNICODE_PRESERVE_BROKEN=y /live/busybox-bin/busybox.no-loc using sed 's/./x/g': 30 using wc -m: 16 CONFIG_UNICODE_SUPPORT=y CONFIG_UNICODE_WIDE_WCHARS=y CONFIG_UNICODE_PRESERVE_BROKEN=y /live/busybox-bin/busybox.norm using sed 's/./x/g': 16 using wc -m: 16 CONFIG_UNICODE_SUPPORT=y CONFIG_UNICODE_WIDE_WCHARS=y The version with USING_LOCALE works but so do others. Using ${#x} never works so I left it out of the results. I have *finally* gotten it to work inside a chroot using busybox.norm which does not set USING_LOCALE but I did have to copy over 34 Meg of locale files from the host system to make it work. The files that finally turned the trick are under: /usr/lib/locale/ I had already copied over files from /usr/share/i18n and /usr/share/locale. I don't know if those are needed or not. I don't think /usr/share/locale is needed because it only contains translations. I'm sure not all of those files are needed. Unfortunately when I delete the 32 Meg locale-archive file then it stops working. Note though that this works without the USING_LOCALE option. In the initrd, the USING_LOCALE options seems to prevent it from working at all although I can try it again with the /usr/lib/locale files assuming I can reduce the size of the locale-archive file and still have it work. Peace, James _______________________________________________ busybox mailing list busybox@busybox.net http://lists.busybox.net/mailman/listinfo/busybox