OSDN Git Service

2003-06-27 Paolo Carlini <pcarlini@unitus.it>
authorpaolo <paolo@138bc75d-0d04-0410-961f-82ee72b054a4>
Fri, 27 Jun 2003 12:33:49 +0000 (12:33 +0000)
committerpaolo <paolo@138bc75d-0d04-0410-961f-82ee72b054a4>
Fri, 27 Jun 2003 12:33:49 +0000 (12:33 +0000)
commita1d41641e38fda61113990de764206134ba2a646
tree867197502c38847a583cb1129372b25e7815176b
parent328ab26a4b9b42e0c5940e3b354b856a358bab20
2003-06-27  Paolo Carlini  <pcarlini@unitus.it>
    Nathan C. Myers  <ncm-nospam@cantrip.org>

PR libstdc++/9178
* include/bits/fstream.tcc (_M_underflow): Properly estimate
the worst-case number of external bytes for a given get area.
* testsuite/27_io/basic_filebuf/underflow/wchar_t/9178.cc: New.

2003-06-27  Paolo Carlini  <pcarlini@unitus.it>
    Petur Runolfsson  <peturr02@ru.is>

PR libstdc++/11305
* include/bits/fstream.tcc (overflow): Properly estimate the
worst-case number of external bytes for a given put area
(by using codecvt::max_length()).
* testsuite/27_io/basic_filebuf/overflow/wchar_t/11305-1: New.
* testsuite/27_io/basic_filebuf/overflow/wchar_t/11305-2: New.
* testsuite/27_io/basic_filebuf/overflow/wchar_t/11305-3: New.
* testsuite/27_io/basic_filebuf/overflow/wchar_t/11305-4: New.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@68566 138bc75d-0d04-0410-961f-82ee72b054a4
libstdc++-v3/ChangeLog
libstdc++-v3/include/bits/fstream.tcc
libstdc++-v3/testsuite/27_io/basic_filebuf/overflow/wchar_t/11305-1.cc [new file with mode: 0644]
libstdc++-v3/testsuite/27_io/basic_filebuf/overflow/wchar_t/11305-2.cc [new file with mode: 0644]
libstdc++-v3/testsuite/27_io/basic_filebuf/overflow/wchar_t/11305-3.cc [new file with mode: 0644]
libstdc++-v3/testsuite/27_io/basic_filebuf/overflow/wchar_t/11305-4.cc [new file with mode: 0644]
libstdc++-v3/testsuite/27_io/basic_filebuf/underflow/wchar_t/9178.cc [new file with mode: 0644]