PR libstdc++/80041 fix codecvt_utf16<wchar_t> to use UTF-16 not UTF-8
commit0297caac35a264c5f55302607a4666365ebd56a5
authorredi <redi@138bc75d-0d04-0410-961f-82ee72b054a4>
Thu, 16 Mar 2017 15:28:02 +0000 (16 15:28 +0000)
committerredi <redi@138bc75d-0d04-0410-961f-82ee72b054a4>
Thu, 16 Mar 2017 15:28:02 +0000 (16 15:28 +0000)
treedb2ed66b6f2e7d0be362185cae557fa867c2d319
parentf5861b7ed65f27ddd549f27402b89c031317665f
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.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@246202 138bc75d-0d04-0410-961f-82ee72b054a4
libstdc++-v3/ChangeLog
libstdc++-v3/src/c++11/codecvt.cc
libstdc++-v3/testsuite/22_locale/codecvt/codecvt_utf16/80041.cc [new file with mode: 0644]