gcc/libstdc++-v3/testsuite/27_io/basic_filebuf
Petur Runolfsson f1813b6972 re PR libstdc++/9028 (codecvt<wchar_t, char, mbstate_t> doesn't work on Red Hat Linux 8.0.)
2003-09-04  Petur Runolfsson  <peturr02@ru.is>

	PR libstdc++/9028
	* include/bits/fstream.tcc
	(basic_filebuf::_M_destroy_internal_buffer): Destroy _M_ext_buf.
	(basic_filebuf::basic_filebuf): Initialize _M_ext_buf,
	_M_ext_buf_size, _M_ext_next and _M_ext_end.
	(basic_filebuf::underflow): Handle variable-width stateless
	encodings (codecvt::encoding() == 0), including UTF-8.
	* include/std/std_fstream.h (basic_filebuf):
	Declare _M_ext_buf, _M_ext_buf_size, _M_ext_next, _M_ext_end.
	* testsuite/27_io/basic_filebuf/underflow/wchar_t/1.cc: New test.
	* testsuite/27_io/basic_filebuf/underflow/wchar_t/2.cc: New test.
	* testsuite/27_io/basic_filebuf/underflow/wchar_t/3.cc: New test.
	* testsuite/27_io/basic_filebuf/underflow/wchar_t/4.cc: New test.
	* testsuite/27_io/basic_filebuf/underflow/wchar_t/5.cc: New test.
	* testsuite/27_io/objects/wchar_t/12.cc: New test.
	* testsuite/27_io/objects/wchar_t/13.cc: New test.

From-SVN: r71111
2003-09-05 12:55:33 +00:00
..
close/char 4879.cc: xfail on cygwin 2003-07-05 12:55:09 +00:00
cons/wchar_t re PR libstdc++/10132 (filebuf destructor throws exceptions) 2003-04-26 00:23:18 +00:00
imbue *: Change __gnu_cxx_test to __gnu_test. 2003-07-24 21:08:03 +00:00
in_avail/char 3.cc: Remove unnecessary includes and unused string literals. 2003-05-10 15:05:15 +00:00
is_open/char Reshuffle 27_io testsuite. 2003-04-10 07:15:40 +00:00
open/char 4879.cc: xfail on cygwin 2003-07-05 12:55:09 +00:00
overflow *: Change __gnu_cxx_test to __gnu_test. 2003-07-24 21:08:03 +00:00
pbackfail/char re PR libstdc++/9761 (filebuf::pbackfail discards previously put back characters) 2003-06-02 16:46:28 +00:00
sbumpc/char *: Change __gnu_cxx_test to __gnu_test. 2003-07-24 21:08:03 +00:00
seekoff *: Change __gnu_cxx_test to __gnu_test. 2003-07-24 21:08:03 +00:00
seekpos *: Change __gnu_cxx_test to __gnu_test. 2003-07-24 21:08:03 +00:00
setbuf/char Nathan C. 2003-07-14 18:23:12 +00:00
sgetc/char *: Change __gnu_cxx_test to __gnu_test. 2003-07-24 21:08:03 +00:00
sgetn/char *: Change __gnu_cxx_test to __gnu_test. 2003-07-24 21:08:03 +00:00
showmanyc/char 4879.cc: xfail on cygwin 2003-07-05 12:55:09 +00:00
snextc/char *: Change __gnu_cxx_test to __gnu_test. 2003-07-24 21:08:03 +00:00
sputbackc/char *: Change __gnu_cxx_test to __gnu_test. 2003-07-24 21:08:03 +00:00
sputc/char *: Change __gnu_cxx_test to __gnu_test. 2003-07-24 21:08:03 +00:00
sputn/char *: Change __gnu_cxx_test to __gnu_test. 2003-07-24 21:08:03 +00:00
sungetc/char *: Change __gnu_cxx_test to __gnu_test. 2003-07-24 21:08:03 +00:00
sync/char Reshuffle 27_io testsuite. 2003-04-10 07:15:40 +00:00
underflow re PR libstdc++/9028 (codecvt<wchar_t, char, mbstate_t> doesn't work on Red Hat Linux 8.0.) 2003-09-05 12:55:33 +00:00
1.cc Reshuffle 27_io testsuite. 2003-04-10 07:15:40 +00:00
2.cc *: Change __gnu_cxx_test to __gnu_test. 2003-07-24 21:08:03 +00:00
3.cc std_fstream.h (_S_pback_size): Remove definition. 2003-05-22 22:16:41 +00:00
4.cc Reshuffle 27_io testsuite. 2003-04-10 07:15:40 +00:00