[Bug libstdc++/13171] New: Bugs in basic_filebuf::imbue
peturr02 at ru dot is
gcc-bugzilla@gcc.gnu.org
Mon Nov 24 09:43:00 GMT 2003
basic_filebuf::imbue hasn't been updated to handle the fix for PR 13007.
1) If pubimbue is called twice with two different locales with the same
name, _M_codecvt points to the (possibly destroyed) facet from the first
locale.
2) If pubimbue is called when a pipe is open, imbue doesn't update
_M_codecvt, so it points to the facet from the old locale.
3) The same thing happens with cin, cout etc.
4) If the old locale has a stateful encoding, imbue does not update
_M_codecvt, even if at the beginning of the file.
--
Summary: Bugs in basic_filebuf::imbue
Product: gcc
Version: 3.4
Status: UNCONFIRMED
Severity: normal
Priority: P2
Component: libstdc++
AssignedTo: unassigned at gcc dot gnu dot org
ReportedBy: peturr02 at ru dot is
CC: gcc-bugs at gcc dot gnu dot org
GCC build triplet: i686-pc-linux-gnu
GCC host triplet: i686-pc-linux-gnu
GCC target triplet: i686-pc-linux-gnu
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=13171
More information about the Gcc-bugs
mailing list