bug-bash
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Command "read -N " doesn't respect UTF-8 encoding


From: Chet Ramey
Subject: Re: Command "read -N " doesn't respect UTF-8 encoding
Date: Mon, 26 Oct 2020 09:37:22 -0400
User-agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.15; rv:78.0) Gecko/20100101 Thunderbird/78.3.3

On 10/24/20 3:51 PM, info@kablex.ru wrote:

> Bash Version: 4.3
> Patch Level: 30
> Release Status: release
> 
> Description:
>         UTF-8 string piped to read command goes corrupt with -N option, e.g.
>       printf "привет"|(read -N 100500 var_text; printf  "$var_text" )
>          returns some corrupt output "�#��#��#��#��#��#�"

Thanks for the report. This was fixed in bash-5.0.


-- 
``The lyf so short, the craft so long to lerne.'' - Chaucer
                 ``Ars longa, vita brevis'' - Hippocrates
Chet Ramey, UTech, CWRU    chet@case.edu    http://tiswww.cwru.edu/~chet/



reply via email to

[Prev in Thread] Current Thread [Next in Thread]