Subject: bug#22064: expr: expr string : '.*' returns the number of matched bytes not characters

From: Stephane Chazelas <[email-masked]>
Date: Mon, 30 Nov 2015 21:09:45 +0000

Hello,

that's another multibyte issue, it may be known already but I
can't see it being referenced on debbugs.gnu.org.

$ locale charmap
UTF-8
$ expr é : .
2
$ expr é 

That is, characters are correctly matched, but a number of bytes
instead of characters is returned.

Same problem with

$ expr length é
2
$ expr index éx x
3

(with both 8.23 and git head on Debian testing).

-- 
Stephane