https://gcc.gnu.org/bugzilla/show_bug.cgi?id=108865
--- Comment #1 from Andrew Pinski <pinskia at gcc dot gnu.org> --- Utf8 is the best generic solution really. Using wmain is not very portable and the rest of gcc's sources can't use wchar_t as that would break unix/Linux handling.