On 4/6/17 10:15 AM, Stephane Chazelas wrote:
> Using "read -N" on text containing multi-byte characters
> produces incorrect result.
Thanks for the report. This will be fixed in the next devel branch push.
--
``The lyf so short, the craft so long to lerne.'' - Chaucer
``Ars lon
Using "read -N" on text containing multi-byte characters
produces incorrect result.
On Debian amd64 with the latest code from git:
$ locale charmap
UTF-8
$ printf '\ue9VWXYZ' | ./bash -c 'IFS= read -rN4 a; printf %s "$a"' | hd
c3 58 a9 56 57|.X.VW|
00