re PR libstdc++/9874 (filebuf::seekpos fails if codecvt::encoding() <= 0)
authorPetur Runolfsson <peturr02@ru.is>
Thu, 9 Oct 2003 16:11:40 +0000 (16:11 +0000)
committerBenjamin Kosnik <bkoz@gcc.gnu.org>
Thu, 9 Oct 2003 16:11:40 +0000 (16:11 +0000)
commit1a139c592401a515cb1238057f89fbac5201c9c8
treeb4bd7eca6d663546516f03c298346c29db83fe8d
parent69c7b8276916ac7807d34abc96c9fb64326995a5
re PR libstdc++/9874 (filebuf::seekpos fails if codecvt::encoding() <= 0)

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.

From-SVN: r72268
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
libstdc++-v3/testsuite/27_io/basic_filebuf/seekpos/wchar_t/9874.cc [new file with mode: 0644]