diff options
| author | paolo <paolo@138bc75d-0d04-0410-961f-82ee72b054a4> | 2003-07-04 16:36:26 +0000 |
|---|---|---|
| committer | paolo <paolo@138bc75d-0d04-0410-961f-82ee72b054a4> | 2003-07-04 16:36:26 +0000 |
| commit | 98762622b9d0c6240b155278c6b0ef2708b55b04 (patch) | |
| tree | a144c0efae7c0040d3b2f8180e06d8ece3a5291e /libstdc++-v3/include/std/std_fstream.h | |
| parent | 2679b07a8a47683a822b82e22ab97203fc3cf792 (diff) | |
| download | ppe42-gcc-98762622b9d0c6240b155278c6b0ef2708b55b04.tar.gz ppe42-gcc-98762622b9d0c6240b155278c6b0ef2708b55b04.zip | |
2003-07-04 Paolo Carlini <pcarlini@unitus.it>
Revert the fix for libstdc++/11378.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@68922 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'libstdc++-v3/include/std/std_fstream.h')
| -rw-r--r-- | libstdc++-v3/include/std/std_fstream.h | 18 |
1 files changed, 3 insertions, 15 deletions
diff --git a/libstdc++-v3/include/std/std_fstream.h b/libstdc++-v3/include/std/std_fstream.h index 766023573ab..b97c9443de9 100644 --- a/libstdc++-v3/include/std/std_fstream.h +++ b/libstdc++-v3/include/std/std_fstream.h @@ -397,21 +397,9 @@ namespace std virtual streamsize xsputn(const char_type* __s, streamsize __n) { - streamsize __ret = 0; - - const bool __testout = this->_M_mode & ios_base::out; - if (__testout && !_M_reading && this->_M_buf_size == 1 - && __check_facet(_M_codecvt).always_noconv()) - { - __ret = _M_file.xsputn(reinterpret_cast<const char*>(__s), __n); - if (__ret == __n) - _M_writing = true; - } - else - __ret = __streambuf_type::xsputn(__s, __n); - - return __ret; - } + _M_destroy_pback(); + return __streambuf_type::xsputn(__s, __n); + } /** * @if maint |

