https://gcc.gnu.org/bugzilla/show_bug.cgi?id=119880
--- Comment #3 from Jonathan Wakely <redi at gcc dot gnu.org> --- And the C++ standard does not say anything about doing that, implying that the libstdc++ behaviour is expected. Using std::cout makes stdout byte-oriented, and using std::wcout makes it wide-oriented, and then it doesn't change.