re PR libstdc++/66417 (std::codecvt_utf16<char32_t, 0x10FFFF, std::codecvt_mode:...
authorJonathan Wakely <jwakely@redhat.com>
Mon, 8 Jun 2015 11:09:17 +0000 (12:09 +0100)
committerJonathan Wakely <redi@gcc.gnu.org>
Mon, 8 Jun 2015 11:09:17 +0000 (12:09 +0100)
commitaa4e0c43bc9db9ae1411e4957720b887fe5e1edf
treefdbd72bd86a3d42fcef6252358719cc3ba090765
parentd216b2e085ddba748c0f61c5487783281e1f5f9f
re PR libstdc++/66417 (std::codecvt_utf16<char32_t, 0x10FFFF, std::codecvt_mode::generate_header> generates incorrect output)

PR libstdc++/66417
* src/c++11/codecvt.cc (write_utf16_code_point): Use adjust_byte_order
for single UTF-16 units.
* testsuite/22_locale/codecvt/codecvt_utf16/66417.cc: New.

From-SVN: r224217
libstdc++-v3/ChangeLog
libstdc++-v3/src/c++11/codecvt.cc
libstdc++-v3/testsuite/22_locale/codecvt/codecvt_utf16/66417.cc [new file with mode: 0644]