https://gcc.gnu.org/bugzilla/show_bug.cgi?id=66441
--- Comment #3 from Jonathan Wakely <redi at gcc dot gnu.org> --- Author: redi Date: Mon Jun 8 13:42:51 2015 New Revision: 224225 URL: https://gcc.gnu.org/viewcvs?rev=224225&root=gcc&view=rev Log: 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. Added: branches/gcc-5-branch/libstdc++-v3/testsuite/22_locale/conversions/string/66441.cc Modified: branches/gcc-5-branch/libstdc++-v3/ChangeLog branches/gcc-5-branch/libstdc++-v3/include/bits/locale_conv.h