https://gcc.gnu.org/bugzilla/show_bug.cgi?id=108865
--- Comment #45 from Costas Argyris <costas.argyris at gmail dot com> --- Created attachment 56653 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=56653&action=edit Introduce configure option --disable-win32-utf8-manifest Thanks for the pointers. I attach a patch that disables the utf8 manifest with the configure option --disable-win32-utf8-manifest To prevent (even more) duplication between the two mingw host branches, I merged them into one since most of their settings are identical. I tested this by building gcc natively on x86_64-w64-mingw32 via MSYS2 (with and without --disable-win32-utf8-manifest), but would appreciate it if the people who reported the problems due to the utf8 manifest also tested it for their use-cases.