busybox/shell/ash_test
Ron Yorston 3e3bfb896e 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-22 18:19:29 -04:00
..
ash-alias
ash-arith shell/math: deconvolute and explain ?: handling. Give better error message 2010-09-16 11:50:46 +02:00
ash-glob ash,hush: add a test which fails for ash since commit 549deab 2015-09-04 03:33:02 +02:00
ash-heredoc ash: fix error during recursive processing of here document 2015-10-29 20:45:36 +01:00
ash-invert
ash-misc ash: add support for bash 'function' keyword 2015-11-04 19:30:24 +01:00
ash-quoting ash: fix obscure case of replacing + globbing + backslashes 2010-06-26 22:55:44 +02:00
ash-read shell: split read builtin from ash 2010-01-12 22:11:24 +01:00
ash-redir ash: fix a bug in >${varexp} handling. Closes 5282 2012-06-09 02:06:57 +02:00
ash-signals slightly better wording in comments 2011-02-21 03:47:50 +01:00
ash-standalone ash: fix unset in standalone mode 2010-06-18 14:23:47 +02:00
ash-vars ash: fix corruption of ${#var} if $var contains UTF-8 characters 2016-03-22 18:19:29 -04:00
printenv.c
recho.c whitespace cleanup 2010-10-29 11:46:52 +02:00
run-all ash tests: make test print test name before it is run 2015-10-29 20:34:20 +01:00
zecho.c whitespace cleanup 2010-10-29 11:46:52 +02:00