r246202 - in /trunk/libstdc++-v3: ChangeLog src...

redi@gcc.gnu.org redi@gcc.gnu.org
Thu Mar 16 15:28:00 GMT 2017


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



More information about the Libstdc++-cvs mailing list