https://gcc.gnu.org/bugzilla/show_bug.cgi?id=80041
--- Comment #2 from Jonathan Wakely <redi at gcc dot gnu.org> --- Author: redi Date: Thu Mar 16 15:28:02 2017 New Revision: 246202 URL: https://gcc.gnu.org/viewcvs?rev=246202&root=gcc&view=rev Log: PR libstdc++/80041 fix codecvt_utf16<wchar_t> to use UTF-16 not UTF-8 PR libstdc++/80041 * src/c++11/codecvt.cc (__codecvt_utf16_base<wchar_t>::do_out) (__codecvt_utf16_base<wchar_t>::do_in): Convert char arguments to char16_t to work with UTF-16 instead of UTF-8. * testsuite/22_locale/codecvt/codecvt_utf16/80041.cc: New test. Added: trunk/libstdc++-v3/testsuite/22_locale/codecvt/codecvt_utf16/80041.cc Modified: trunk/libstdc++-v3/ChangeLog trunk/libstdc++-v3/src/c++11/codecvt.cc