<feed xmlns='http://www.w3.org/2005/Atom'>
<title>busybox-w32/shell/ash_test/ash-vars/var-utf8-length.tests, branch zstd</title>
<subtitle>A mirror of https://github.com/rmyorston/busybox-w32.git
</subtitle>
<id>https://git.lua4.win/busybox-w32/atom?h=zstd</id>
<link rel='self' href='https://git.lua4.win/busybox-w32/atom?h=zstd'/>
<link rel='alternate' type='text/html' href='https://git.lua4.win/busybox-w32/'/>
<updated>2017-07-06T17:29:23+00:00</updated>
<entry>
<title>hush: "adopt" ash var-utf8-length.tests</title>
<updated>2017-07-06T17:29:23+00:00</updated>
<author>
<name>Denys Vlasenko</name>
<email>vda.linux@googlemail.com</email>
</author>
<published>2017-07-06T17:29:23+00:00</published>
<link rel='alternate' type='text/html' href='https://git.lua4.win/busybox-w32/commit/?id=3234045d07c3fb2a9ef8afd02f821158317adbd3'/>
<id>urn:sha1:3234045d07c3fb2a9ef8afd02f821158317adbd3</id>
<content type='text'>
Signed-off-by: Denys Vlasenko &lt;vda.linux@googlemail.com&gt;
</content>
</entry>
<entry>
<title>ash: fix corruption of ${#var} if $var contains UTF-8 characters</title>
<updated>2016-03-22T22:19:29+00:00</updated>
<author>
<name>Ron Yorston</name>
<email>rmy@pobox.com</email>
</author>
<published>2016-03-18T11:29:19+00:00</published>
<link rel='alternate' type='text/html' href='https://git.lua4.win/busybox-w32/commit/?id=3e3bfb896e0dd8a54caad9c6264e2452566b4012'/>
<id>urn:sha1:3e3bfb896e0dd8a54caad9c6264e2452566b4012</id>
<content type='text'>
As reported in bug 8506:

   $ X=abcdÉfghÍjklmnÓpqrstÚvwcyz
   $ echo ${#X}
   abcd26

The result should be 26.

This regression was introduced by:

   &lt;d68d1fb&gt; 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 &lt;martijn@inlv.org&gt;
Signed-off-by: Ron Yorston &lt;rmy@pobox.com&gt;
Signed-off-by: Mike Frysinger &lt;vapier@gentoo.org&gt;
</content>
</entry>
</feed>
