[prev in list] [next in list] [prev in thread] [next in thread]
List: busybox
Subject: Re: [PATCH] ash: fix corruption of ${#var} if $var contains UTF-8 characters
From: Mike Frysinger <vapier () gentoo ! org>
Date: 2016-03-22 22:20:43
Message-ID: 20160322222043.GG6588 () vapier ! lan
[Download RAW message or body]
[Attachment #2 (multipart/signed)]
On 18 Mar 2016 11:29, Ron Yorston wrote:
> 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.
merged, thanks
-mike
["signature.asc" (application/pgp-signature)]
_______________________________________________
busybox mailing list
busybox@busybox.net
http://lists.busybox.net/mailman/listinfo/busybox
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic