How do I (unconditionally) enable unicode support in busybox?
walter harms
wharms at bfs.de
Mon Aug 4 15:23:05 UTC 2014
Am 04.08.2014 07:50, schrieb James Bowlin:
> I run busybox in an initrd (initramfs) environment using both
> legacy Grub and isolinux as boot loaders. I want to be able to
> get the correct length of unicode strings in characters, not
> bytes. I always have these two options set:
>
> CONFIG_UNICODE_SUPPORT=y
> CONFIG_UNICODE_WIDE_WCHARS=y
>
> and I've played with the 3 combinations of:
>
> CONFIG_UNICODE_USING_LOCALE
> CONFIG_FEATURE_CHECK_UNICODE_IN_ENV
>
> both off, and one or the other on.
>
> At best I get very erratic results that depend on the value the
> LANG variable when the first busybox shell (/init script) starts
> and it seems to be immune to later using "export LANG=xxx".
>
> One of the things I've tried is:
>
> echo -n "$x" | LANG=en_US.UTF-8 sed 's/./x/g' | wc -c
>
It is interessting to have an automated testing.
Perhaps you can create a test setup ?
re,
wh
More information about the busybox
mailing list