This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug libstdc++/13171] New: Bugs in basic_filebuf::imbue
- From: "peturr02 at ru dot is" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 24 Nov 2003 09:43:47 -0000
- Subject: [Bug libstdc++/13171] New: Bugs in basic_filebuf::imbue
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
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