[Bug libstdc++/9874] filebuf::seekpos fails if codecvt::encoding() <= 0

cvs-commit at gcc dot gnu dot org gcc-bugzilla@gcc.gnu.org
Thu Oct 9 16:11:00 GMT 2003


PLEASE REPLY TO gcc-bugzilla@gcc.gnu.org ONLY, *NOT* gcc-bugs@gcc.gnu.org.

http://gcc.gnu.org/bugzilla/show_bug.cgi?id=9874



------- Additional Comments From cvs-commit at gcc dot gnu dot org  2003-10-09 16:11 -------
Subject: Bug 9874

CVSROOT:	/cvs/gcc
Module name:	gcc
Changes by:	bkoz@gcc.gnu.org	2003-10-09 16:11:40

Modified files:
	libstdc++-v3   : ChangeLog 
	libstdc++-v3/include/bits: fstream.tcc 
	libstdc++-v3/include/std: std_fstream.h 
	libstdc++-v3/testsuite/22_locale/locale/cons: 12438.cc 
Added files:
	libstdc++-v3/testsuite/27_io/basic_filebuf/seekpos/wchar_t: 
	                                                            9874.cc 

Log message:
	2003-10-09  Petur Runolfsson  <peturr02@ru.is>
	
	PR libstdc++/9874
	* include/bits/fstream.tcc (basic_filebuf::seekoff):
	Move code needed for both seekoff and seekpos...
	(basic_filebuf::_M_seek): ...here. New function.
	(basic_filebuf::seekpos): Don't call seekoff, call _M_seek.
	* include/std/std_fstream.h (basic_filebuf::_M_seek): Declare it.
	* testsuite/27_io/basic_filebuf/seekpos/wchar_t/9874.cc: New test.
	
	* testsuite/22_locale/locale/cons/12438.cc: Increase memory limit.

Patches:
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/libstdc++-v3/ChangeLog.diff?cvsroot=gcc&r1=1.2000&r2=1.2001
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/libstdc++-v3/include/bits/fstream.tcc.diff?cvsroot=gcc&r1=1.101&r2=1.102
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/libstdc++-v3/include/std/std_fstream.h.diff?cvsroot=gcc&r1=1.58&r2=1.59
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/libstdc++-v3/testsuite/22_locale/locale/cons/12438.cc.diff?cvsroot=gcc&r1=1.2&r2=1.3
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/libstdc++-v3/testsuite/27_io/basic_filebuf/seekpos/wchar_t/9874.cc.diff?cvsroot=gcc&r1=NONE&r2=1.1



More information about the Gcc-bugs mailing list