https://gcc.gnu.org/bugzilla/show_bug.cgi?id=66441
--- Comment #2 from Jonathan Wakely <redi at gcc dot gnu.org> --- Author: redi Date: Mon Jun 8 13:03:45 2015 New Revision: 224222 URL: https://gcc.gnu.org/viewcvs?rev=224222&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: trunk/libstdc++-v3/testsuite/22_locale/conversions/string/66441.cc Modified: trunk/libstdc++-v3/ChangeLog trunk/libstdc++-v3/include/bits/locale_conv.h