]> git.ipfire.org Git - thirdparty/gcc.git/commit
re PR libstdc++/13582 (basic_filebuf::imbue drops characters)
authorPaolo Carlini <pcarlini@suse.de>
Sun, 11 Jan 2004 15:17:02 +0000 (15:17 +0000)
committerPaolo Carlini <paolo@gcc.gnu.org>
Sun, 11 Jan 2004 15:17:02 +0000 (15:17 +0000)
commit09625c1681b30febed411fa7526cf4b620a54ab3
tree265078aa8a455b8d2943d54accb0d8d8122148c4
parentdf9bad81839fd9e5323543cbfe74d9859eb4dc1a
re PR libstdc++/13582 (basic_filebuf::imbue drops characters)

2004-01-11  Paolo Carlini  <pcarlini@suse.de>

PR libstdc++/13582
* include/bits/fstream.tcc (imbue): Exploit the external
buffer to imbue 'on the fly' a new locale and convert its
remainder with the new codecvt facet.
(underflow): Tweak slightly to deal with this special case.
* testsuite/27_io/basic_filebuf/imbue/char/13582-2.cc: New.
* testsuite/27_io/basic_filebuf/imbue/wchar_t/13582-2.cc: Ditto.
* testsuite/27_io/basic_filebuf/imbue/wchar_t/13582-3.cc: Ditto.
* testsuite/27_io/objects/wchar_t/13582-1_xin.cc: Ditto.
* testsuite/27_io/objects/wchar_t/13582-1_xin.in: Ditto.

From-SVN: r75677
libstdc++-v3/ChangeLog
libstdc++-v3/include/bits/fstream.tcc
libstdc++-v3/testsuite/27_io/basic_filebuf/imbue/char/13582-2.cc [new file with mode: 0644]
libstdc++-v3/testsuite/27_io/basic_filebuf/imbue/wchar_t/13582-2.cc [new file with mode: 0644]
libstdc++-v3/testsuite/27_io/basic_filebuf/imbue/wchar_t/13582-3.cc [new file with mode: 0644]
libstdc++-v3/testsuite/27_io/objects/wchar_t/13582-1_xin.cc [new file with mode: 0644]
libstdc++-v3/testsuite/27_io/objects/wchar_t/13582-1_xin.in [new file with mode: 0644]