[patch] libstdc++/66441 Fix wstring_convert when generating BOM

Jonathan Wakely jwakely@redhat.com
Mon Jun 8 13:03:00 GMT 2015


If the codecvt facet generates a BOM on every call to out() then we
need to ensure there is enough capacity in the output string for the
entire result, otherwise we loop and insert more than one BOM into the
result.

Tested powerpc64-linux and powerpc64-linux.

Committing to trunk and gcc-5-branch.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: patch.txt
Type: text/x-patch
Size: 2969 bytes
Desc: not available
URL: <http://gcc.gnu.org/pipermail/libstdc++/attachments/20150608/6726e819/attachment.bin>


More information about the Libstdc++ mailing list