This website requires JavaScript.
Explore
Help
Register
Sign In
emo
/
busybox
Watch
1
Star
0
Fork
0
You've already forked busybox
Code
Issues
Pull Requests
Packages
Projects
Releases
Wiki
Activity
1a1220a5b0
busybox
/
shell
/
ash_test
/
ash-vars
/
var-utf8-length.tests
5 lines
80 B
Plaintext
Raw
Normal View
History
Unescape
Escape
hush: "adopt" ash var-utf8-length.tests Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
2017-07-06 22:59:23 +05:30
LANG=en_US.UTF-8
LC_ALL=en_US.UTF-8
ash: fix corruption of ${#var} if $var contains UTF-8 characters As reported in bug 8506: $ X=abcdÉfghÍjklmnÓpqrstÚvwcyz $ echo ${#X} abcd26 The result should be 26. This regression was introduced by: <d68d1fb> 2015-05-18 [Ron Yorston] ash: code shrink around varvalue The length in characters was being used to discard the contents of the variable instead of the length in bytes. URL: https://bugs.busybox.net/8506 Reported-by: Martijn Dekker <martijn@inlv.org> Signed-off-by: Ron Yorston <rmy@pobox.com> Signed-off-by: Mike Frysinger <vapier@gentoo.org>
2016-03-18 16:59:19 +05:30
X=abcdÉfghÍjklmnÓpqrstÚvwcyz
echo ${#X}
Reference in New Issue
Copy Permalink