Possible Unicode Problems in Busybox - Collect and Discussion

Harald Becker ralda at gmx.de
Wed Aug 13 17:23:33 UTC 2014


Hi Denys !

>> 2) shell substitution ${#var}
>> Does this length operation shall give the number of bytes in var or the
>> number of characters (which may differ for multi byte characters, like
>> UTF-8).
>
> bash gives number of Unicode chars.
> I just fixed both ash and hush to do the same.

bash seams to be the only shell which does this. So is this a bash-ism?

... and "expr length $var" (upstream) still return the size in bytes not 
characters.

--
Harald



More information about the busybox mailing list