diff options
author | Jonathan Wakely <jwakely@redhat.com> | 2017-03-16 15:28:02 +0000 |
---|---|---|
committer | Jonathan Wakely <redi@gcc.gnu.org> | 2017-03-16 15:28:02 +0000 |
commit | a4c687d64b5e1144ef7f61b6daf7efb209f83d35 (patch) | |
tree | db2ed66b6f2e7d0be362185cae557fa867c2d319 /gcc/tree-diagnostic.h | |
parent | 516231de7317bbaf0f83a27047924bb690a217e5 (diff) | |
download | gcc-a4c687d64b5e1144ef7f61b6daf7efb209f83d35.zip gcc-a4c687d64b5e1144ef7f61b6daf7efb209f83d35.tar.gz gcc-a4c687d64b5e1144ef7f61b6daf7efb209f83d35.tar.bz2 |
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.
From-SVN: r246202
Diffstat (limited to 'gcc/tree-diagnostic.h')
0 files changed, 0 insertions, 0 deletions