bug#22064: expr: expr string : '.*' returns the number of matched bytes not characters
tags 22064 fixed close 22064 stop (triaging old bugs) On 30/11/15 02:09 PM, Stephane Chazelas wrote: that's another multibyte issue, it may be known already but I can't see it being referenced on debbugs.gnu.org. This commit added multibyte support to expr(1): https://git.savannah.gnu.org/cgit/coreutils.git/commit/?id=a9f2be5bfec2bfe86c0851787312996467a653ee Available since coreutils 8.28 (released Sep 2017). Closing as "fixed". -assaf
bug#22064: expr: expr string : '.*' returns the number of matched bytes not characters
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