Possible Unicode Problems in Busybox - Collect and Discussion
Harald Becker
ralda at gmx.de
Wed Aug 13 18:57:00 UTC 2014
> 3) applet expr, function length STRING
> This also may hit the *index*, *substr* and *match* functions. Do we
> look at positions of character or at byte positions. What does the specs
> say on this?
Looks like they removed *length*, *index*, *substr* and *match* from the
specification of this applet???
... and spec says:
expr "$var" : '.*'
shall return the number of characters.
$ xxx=äöü
$ expr "$xxx" : '.*'
6
... outch! (Both BB and upstream)
More information about the busybox
mailing list