2003-11-11 Paolo Carlini <pcarlini@suse.de> PR libstdc++/12875 * include/bits/fstream.tcc (setbuf): Don't do anything after open(), in particular don't discard data. (_M_allocate_internal_buffer): Tweak to not allocate memory in case the buffer is provided by the user via setbuf. * include/ext/stdio_filebuf.h: Tweak comment. * testsuite/27_io/basic_filebuf/setbuf/char/12875-1.cc: New. * testsuite/27_io/basic_filebuf/setbuf/char/12875-2.cc: Likewise. * testsuite/27_io/basic_filebuf/setbuf/char/2.cc: Tweak, now setbuf does nothing after open(). * testsuite/27_io/basic_filebuf/setbuf/char/3.cc: Likewise. From-SVN: r73477
| Name | 
 Last commit 
 | 
Last update | 
|---|---|---|
| .. | ||
| algorithm | Loading commit data... | |
| debug_allocator.h | Loading commit data... | |
| enc_filebuf.h | Loading commit data... | |
| functional | Loading commit data... | |
| hash_fun.h | Loading commit data... | |
| hash_map | Loading commit data... | |
| hash_set | Loading commit data... | |
| hashtable.h | Loading commit data... | |
| iterator | Loading commit data... | |
| malloc_allocator.h | Loading commit data... | |
| memory | Loading commit data... | |
| mt_allocator.h | Loading commit data... | |
| new_allocator.h | Loading commit data... | |
| numeric | Loading commit data... | |
| pod_char_traits.h | Loading commit data... | |
| pool_allocator.h | Loading commit data... | |
| rb_tree | Loading commit data... | |
| rope | Loading commit data... | |
| ropeimpl.h | Loading commit data... | |
| slist | Loading commit data... | |
| stdio_filebuf.h | Loading commit data... | |
| stdio_sync_filebuf.h | Loading commit data... |