Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > gnu.bash.bug > #14764 > unrolled thread

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

Started byChet Ramey <chet.ramey@case.edu>
First post2018-11-05 14:27 -0500
Last post2018-11-05 14:27 -0500
Articles 1 — 1 participant

Back to article view | Back to gnu.bash.bug

This discussion starts older than the indexed window; earlier articles aren't shown. The article labeled Started by below is the oldest one visible, not the original post.


Contents

  Re: printf '\uFEFF' outputs invalid UTF-8 on Windows Chet Ramey <chet.ramey@case.edu> - 2018-11-05 14:27 -0500

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

FromChet Ramey <chet.ramey@case.edu>
Date2018-11-05 14:27 -0500
SubjectRe: printf '\uFEFF' outputs invalid UTF-8 on Windows
Message-ID<mailman.3514.1541446104.1284.bug-bash@gnu.org>
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/

[toc] | [standalone]


Back to top | Article view | gnu.bash.bug


csiph-web