Fix std::codecvt_utf8<wchar_t> for Mingw
authorJonathan Wakely <jwakely@redhat.com>
Sat, 19 May 2018 02:03:42 +0000 (03:03 +0100)
committerJonathan Wakely <redi@gcc.gnu.org>
Sat, 19 May 2018 02:03:42 +0000 (03:03 +0100)
commita76400f4e68030bf91bc20b39ed585e596e18ea5
treee07b72eac0073dd5bf2384593b93da2f84e5dfe0
parentd84a1119da583fb27179bd62995de16a896c7969
Fix std::codecvt_utf8<wchar_t> for Mingw

* src/c++11/codecvt.cc (__codecvt_utf8_base<wchar_t>::do_in)
[__SIZEOF_WCHAR_T__==2 && __BYTE_ORDER__!=__ORDER_BIG_ENDIAN__]: Set
little_endian element in bitmask.
* testsuite/22_locale/codecvt/codecvt_utf8/69703.cc: Run all tests.
* testsuite/22_locale/codecvt/codecvt_utf8/wchar_t/1.cc: New.

From-SVN: r260389
libstdc++-v3/ChangeLog
libstdc++-v3/src/c++11/codecvt.cc
libstdc++-v3/testsuite/22_locale/codecvt/codecvt_utf8/69703.cc
libstdc++-v3/testsuite/22_locale/codecvt/codecvt_utf8/wchar_t/1.cc [new file with mode: 0644]