[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
bug#22064: expr: expr string : '.*' returns the number of matched bytes
From: |
Stephane Chazelas |
Subject: |
bug#22064: expr: expr string : '.*' returns the number of matched bytes not characters |
Date: |
Mon, 30 Nov 2015 21:09:45 +0000 |
User-agent: |
Mutt/1.5.21 (2010-09-15) |
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
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- bug#22064: expr: expr string : '.*' returns the number of matched bytes not characters,
Stephane Chazelas <=