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

2018-11-05 Thread Chet Ramey
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 outp

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

2018-11-05 Thread Kalle Olavi Niemitalo
Configuration Information [Automatically generated, do not change]: Machine: x86_64 OS: msys Compiler: gcc Compilation CFLAGS: -DPROGRAM='bash.exe' -DCONF_HOSTTYPE='x86_64' -DCONF_OSTYPE='msys' -DCONF_MACHTYPE='x86_64-pc-msys' -DCONF_VENDOR='pc' -DLOCALEDIR='/usr/share/locale' -DPACKAGE='bash' -