Possible Unicode Problems in Busybox - Collect and Discussion
Denys Vlasenko
vda.linux at googlemail.com
Wed Aug 13 16:02:59 UTC 2014
On Wed, Aug 13, 2014 at 1:40 PM, Harald Becker <ralda at gmx.de> wrote:
> 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.
> 4) applet printf, string formats "%Ns"
> Does this N mean character positions or bytes. The underlying C printf used
> to work with bytes for decades. The man page talks about character
> positions, but printf from bash uses bytes.
Also, printf needs to support \uXXXX
--
vda
More information about the busybox
mailing list