[Patch] Fix libstdc++/12206

Paolo Carlini pcarlini@unitus.it
Fri Oct 3 18:14:00 GMT 2003


Hi,

seems an abvious fix: just mimic the logic already present in the
basic_filebuf::basic_filebuf() constructor: *only* if the locale
turns out to have a codecvt facet use &use_facet for _M_codecvt,
otherwise set it to zero.

Tested x86-linux. Ok with everyone?

Paolo.

////////////
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: CL_12206
URL: <http://gcc.gnu.org/pipermail/libstdc++/attachments/20031003/41f3a0f6/attachment.ksh>
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: patch_12206
URL: <http://gcc.gnu.org/pipermail/libstdc++/attachments/20031003/41f3a0f6/attachment-0001.ksh>


More information about the Libstdc++ mailing list