diff options
author | Paolo Carlini <pcarlini@suse.de> | 2003-11-18 08:21:38 +0000 |
---|---|---|
committer | Paolo Carlini <paolo@gcc.gnu.org> | 2003-11-18 08:21:38 +0000 |
commit | 2934246345f8f64dfcf01a9ea79e3bb1279c877c (patch) | |
tree | daa2ff7e839fcb7ddd139eef47a4d6daedfcfab6 /libstdc++-v3/ChangeLog | |
parent | 0ec5fef2187bc6f4f962e3afe1b2d829b7474d80 (diff) | |
download | gcc-2934246345f8f64dfcf01a9ea79e3bb1279c877c.zip gcc-2934246345f8f64dfcf01a9ea79e3bb1279c877c.tar.gz gcc-2934246345f8f64dfcf01a9ea79e3bb1279c877c.tar.bz2 |
re PR libstdc++/12868 (basic_filebuf::imbue fails too easily)
2003-11-18 Paolo Carlini <pcarlini@suse.de>
PR libstdc++/12868
* include/bits/fstream.tcc (imbue): For encodings != -1 it's
always ok to imbue a new locale, provided seekoff(0, cur, ...)
doesn't fail, of course.
(underflow): In order for the above to work, deal gracefully
with _M_codecvt->in returning codecvt_base::error while
(__ilen = __iend - this->eback()) > 0: it just means __ilen
correctly converted internal characters before an error.
* testsuite/27_io/basic_filebuf/imbue/wchar_t/12868.cc: New.
From-SVN: r73697
Diffstat (limited to 'libstdc++-v3/ChangeLog')
-rw-r--r-- | libstdc++-v3/ChangeLog | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/libstdc++-v3/ChangeLog b/libstdc++-v3/ChangeLog index 4bce163..88079fd 100644 --- a/libstdc++-v3/ChangeLog +++ b/libstdc++-v3/ChangeLog @@ -1,3 +1,15 @@ +2003-11-18 Paolo Carlini <pcarlini@suse.de> + + PR libstdc++/12868 + * include/bits/fstream.tcc (imbue): For encodings != -1 it's + always ok to imbue a new locale, provided seekoff(0, cur, ...) + doesn't fail, of course. + (underflow): In order for the above to work, deal gracefully + with _M_codecvt->in returning codecvt_base::error while + (__ilen = __iend - this->eback()) > 0: it just means __ilen + correctly converted internal characters before an error. + * testsuite/27_io/basic_filebuf/imbue/wchar_t/12868.cc: New. + 2003-11-17 Paolo Carlini <pcarlini@suse.de> * include/bits/locale_facets.tcc: Fix typo in comment. |