bug-bash
[Top][All Lists]
Advanced

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

Re: printf '\uFEFF' outputs invalid UTF-8 on Windows


From: Chet Ramey
Subject: Re: printf '\uFEFF' outputs invalid UTF-8 on Windows
Date: Mon, 5 Nov 2018 14:27:37 -0500
User-agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.13; rv:52.0) Gecko/20100101 Thunderbird/52.9.1

On 11/5/18 12:09 PM, Kalle Olavi Niemitalo wrote:

> Bash Version: 4.4
> Patch Level: 19
> Release Status: release
> 
> Description:
>         The builtin printf '\uFEFF' outputs ED 9F BF ED BB BF in a
>         UTF-8 locale on Microsoft Windows, where sizeof(wchar_t) == 2.
>         It should output EF BB BF, like printf (GNU coreutils) 8.30
>         does.

Thanks for the report. This has been fixed for almost exactly two years
in the devel branch, the result of

http://lists.gnu.org/archive/html/bug-bash/2016-11/msg00039.html

and is fixed in the bash-5.x alpha and beta versions.

Chet
-- 
``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]