This is the mail archive of the libstdc++@gcc.gnu.org mailing list for the libstdc++ project.
Index Nav: | [Date Index] [Subject Index] [Author Index] [Thread Index] | |
---|---|---|
Message Nav: | [Date Prev] [Date Next] | [Thread Prev] [Thread Next] |
Other format: | [Raw text] |
Hi, This patch makes basic_filebuf::seekoff usable with variable-width encodings. Note that the return value can't be passed to seekpos (yet), but seekoff can be used to switch between read and write mode. Tested on i686-pc-linux-gnu. Petur 2003-09-09 Petur Runolfsson <peturr02@ru.is> * include/bits/fstream.tcc (basic_filebuf::seekoff): Use codecvt::length to handle variable-width stateless encodings correctly. * testsuite/27_io/basic_filebuf/seekoff/wchar_t/1.cc: New test. * testsuite/27_io/basic_filebuf/seekoff/wchar_t/2.cc: New test.
Attachment:
utf8-seekoff.diff
Description: utf8-seekoff.diff
Index Nav: | [Date Index] [Subject Index] [Author Index] [Thread Index] | |
---|---|---|
Message Nav: | [Date Prev] [Date Next] | [Thread Prev] [Thread Next] |