re PR libstdc++/66441 (wstring_convert not working correctly)
authorJonathan Wakely <jwakely@redhat.com>
Mon, 8 Jun 2015 13:03:45 +0000 (14:03 +0100)
committerJonathan Wakely <redi@gcc.gnu.org>
Mon, 8 Jun 2015 13:03:45 +0000 (14:03 +0100)
commitc00f4f5fb3f0b482cc50d459b0f89af4ddb0ec1a
tree1788fc16b7a5e41402b9ab33838a01415f361fa1
parent9b999e8c82296dc7acee8e74b49cab47004c47a5
re PR libstdc++/66441 (wstring_convert not working correctly)

PR libstdc++/66441
* testsuite/22_locale/conversions/string/66441.cc: New.
* include/bits/locale_conv.h (__do_str_codecvt): Reserve enough space
in the output string for BOM and complete result.

From-SVN: r224222
libstdc++-v3/ChangeLog
libstdc++-v3/include/bits/locale_conv.h
libstdc++-v3/testsuite/22_locale/conversions/string/66441.cc [new file with mode: 0644]