gcc/libstdc++-v3/src
Paolo Carlini 75a25e3f65 DR 243.
2004-11-26  Paolo Carlini  <pcarlini@suse.de>

	DR 243. get and getline when sentry reports failure [WP]
	* include/bits/istream.tcc (istream<>::get, istream<>::getline):
	Store a null character only if the array has a non-zero size.
	* src/istream.cc (istream<char>::getline, istream<wchar_t>::getline):
	Likewise.
	* testsuite/27_io/basic_istream/get/char/3.cc: New.
	* testsuite/27_io/basic_istream/getline/char/6.cc: New.
	* testsuite/27_io/basic_istream/getline/wchar_t/6.cc: New.
	* docs/html/ext/howto.html: Add an entry for DR 243.

	* testsuite/27_io/basic_istream/getline/wchar_t/1.cc: New.
	* testsuite/27_io/basic_istream/getline/wchar_t/2.cc: New.
	* testsuite/27_io/basic_istream/getline/wchar_t/3.cc: New.
	* testsuite/27_io/basic_istream/getline/wchar_t/4.cc: New.
	* testsuite/27_io/basic_istream/getline/wchar_t/5.cc: New.

From-SVN: r91348
2004-11-26 20:34:27 +00:00
..
allocator-inst.cc re PR libstdc++/16614 (Excessive resource usage in __mt_alloc) 2004-09-01 22:17:00 +00:00
bitmap_allocator.cc bitmap_allocator.h: Change unsigned int -> size_t... 2004-10-17 14:46:29 +00:00
codecvt.cc re PR libstdc++/12854 (libstdc++ vs. -Weffc++) 2004-05-22 23:46:34 +00:00
complex_io.cc Move from CPP to CXX. 2003-07-05 04:05:45 +00:00
concept-inst.cc Move from CPP to CXX. 2003-07-05 04:05:45 +00:00
ctype.cc re PR libstdc++/12854 (libstdc++ vs. -Weffc++) 2004-05-22 23:46:34 +00:00
debug_list.cc c++config (_GLIBCXX_STD): New. 2004-04-16 19:04:07 +00:00
debug.cc re PR libstdc++/17664 ([3.4 only] Crash in std::map when using _GLIBCXX_DEBUG with multithreading) 2004-11-08 20:47:25 +00:00
ext-inst.cc Fixups for EDG front end. 2004-04-07 03:33:36 +00:00
fstream-inst.cc Move from CPP to CXX. 2003-07-05 04:05:45 +00:00
functexcept.cc Move from CPP to CXX. 2003-07-05 04:05:45 +00:00
globals_io.cc globals_io.cc: Change to __gnu_internal namespace. 2004-01-28 21:20:42 +00:00
globals_locale.cc locale_facets.h (class money_base): Add { _S_minus, _S_zero, _S_end } enum, _S_atoms. 2004-02-21 09:26:35 +00:00
io-inst.cc [multiple changes] 2003-10-09 16:53:54 +00:00
ios_failure.cc [multiple changes] 2003-10-09 16:53:54 +00:00
ios_init.cc re PR libstdc++/16959 (Segmentation fault in ios_base::sync_with_stdio) 2004-08-11 09:31:13 +00:00
ios_locale.cc Makefile.am: Add new files. 2003-10-17 14:47:30 +00:00
ios.cc re PR libstdc++/17922 (Spurious warnings about std::ios_base::seekdir) 2004-11-02 19:00:19 +00:00
istream-inst.cc Move from CPP to CXX. 2003-07-05 04:05:45 +00:00
istream.cc DR 243. 2004-11-26 20:34:27 +00:00
limits.cc Move from CPP to CXX. 2003-07-05 04:05:45 +00:00
list.cc c++config (_GLIBCXX_STD): New. 2004-04-16 19:04:07 +00:00
locale_facets.cc locale_facets.h (class money_base): Add { _S_minus, _S_zero, _S_end } enum, _S_atoms. 2004-02-21 09:26:35 +00:00
locale_init.cc PR libstdc++/12658 (continued) 2004-07-29 15:54:50 +00:00
locale-inst.cc locale_facets.h (money_get<>::_M_extract): Change signature: now takes a plain string&. 2004-02-27 10:12:01 +00:00
locale-misc-inst.cc locale-misc-inst.cc (__convert_from_v(long), [...]): Remove, unused. 2004-01-13 23:25:55 +00:00
locale.cc re PR libstdc++/12854 (libstdc++ vs. -Weffc++) 2004-05-22 23:46:34 +00:00
localename.cc localename.cc (locale::locale(const char*)): Minor tweaks: rename a variable, move an assignment. 2004-09-24 15:26:35 +00:00
Makefile.am streambuf.tcc (__copy_streambufs): Provide a generic version of the function... 2004-11-15 23:33:05 +00:00
Makefile.in Makefile.in, aclocal.m4: Regenerate with automake 1.9.3. 2004-11-24 21:12:26 +00:00
misc-inst.cc re PR libstdc++/12658 (Thread safety problems in locale::global() and locale::locale()) 2004-03-07 01:32:43 +00:00
mt_allocator.cc mt_allocator.h (__pool::_M_get_align): New. 2004-10-17 15:22:03 +00:00
ostream-inst.cc Move from CPP to CXX. 2003-07-05 04:05:45 +00:00
pool_allocator.cc pool_allocator.cc (__pool_alloc_base::_M_allocate_chunk): Deal properly with exceptions thrown by ::operator new(size_t). 2004-10-11 08:19:35 +00:00
sstream-inst.cc Move from CPP to CXX. 2003-07-05 04:05:45 +00:00
stdexcept.cc * config/locale/gnu/ctype_members.cc 2002-12-27 23:03:03 +00:00
streambuf-inst.cc std_streambuf.h (__copy_streambufs): Remove the first, unused, basic_ios<> parameter. 2003-11-27 13:13:19 +00:00
streambuf.cc streambuf.tcc (__copy_streambufs): Provide a generic version of the function... 2004-11-15 23:33:05 +00:00
string-inst.cc [multiple changes] 2004-06-12 08:10:24 +00:00
strstream.cc re PR libstdc++/11460 (Incorrect use of int_type in strstreambuf::pbackfail) 2003-10-12 20:03:18 +00:00
tree.cc [multiple changes] 2004-01-07 20:55:06 +00:00
valarray-inst.cc indirect_array.h: Trivial formatting fixes. 2004-08-16 14:50:31 +00:00
wlocale-inst.cc Makefile.am: Add new files. 2003-10-17 14:47:30 +00:00
wstring-inst.cc Makefile.am: Add new files. 2003-10-17 14:47:30 +00:00