This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: [PATCH] Handle variable width encodings inbasic_filebuf::seekpos
- From: Benjamin Kosnik <bkoz at redhat dot com>
- To: Pétur Runólfsson <peturr02 at ru dot is>
- Cc: libstdc++ at gcc dot gnu dot org, gcc-patches at gcc dot gnu dot org
- Date: Thu, 9 Oct 2003 11:13:59 -0500
- Subject: Re: [PATCH] Handle variable width encodings inbasic_filebuf::seekpos
- Organization: Red Hat / Chicago
- References: <07D05A69A3D0C14FAEA60C3ACE8E5564028D0E4C@mail.ru.is>
>2003-10-07 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/22_locale/locale/cons/12438.cc: Increase memory limit.
> * testsuite/27_io/basic_filebuf/seekpos/wchar_t/9874.cc: New test.
In, thanks!