OSDN Git Service

2000-08-09 Benjamin Kosnik <bkoz@purist.soma.redhat.com>
authorbkoz <bkoz@138bc75d-0d04-0410-961f-82ee72b054a4>
Wed, 9 Aug 2000 07:33:39 +0000 (07:33 +0000)
committerbkoz <bkoz@138bc75d-0d04-0410-961f-82ee72b054a4>
Wed, 9 Aug 2000 07:33:39 +0000 (07:33 +0000)
commit1ce522f293111cadecf4ad6568e22bf4f389f126
tree810fd814c4d1fcc52243e90ea7ac6ac2416bdda2
parent8a5579774a5d81c4d00e10b852ff9a5668112543
2000-08-09  Benjamin Kosnik  <bkoz@purist.soma.redhat.com>

Preliminary wchar_t implementation, with trivial encodings.
* docs/configopts.html: Add bits about canonical configure option
checking.

* testsuite/27_io/iostream_objects.cc: Replace this file (which
has newly-declared-illegal mixing of wide/narrow stdstreams) with...
* testsuite/27_io/narrow_stream_objects.cc: New file.
* testsuite/27_io/wide_stream_objects.cc: New file.

* bits/fstream.tcc (underflow): Temporarily hack a solution
together that writes from the external file to the internal
buffers. This removes codecvt from the loop, and is incorrect.
(_M_really_overflow): Same here.

* testsuite/21_strings/inserters_extractors.cc (test05): Tweaks.

2000-08-08  Benjamin Kosnik  <bkoz@cygnus.com>
    Ulrich Drepper  <drepper@cygnus.com>

* config/c_io_libio.h: Tweak.
* config/c_io_libio_codecvt.c: New file.
* libio/Makefile.am: Add c_codecvt.c.
* libio/Makefile.in: Regenerate.
* libio/genops.c (_IO_unbuffer_write): Don't call _IO_SETBUF if the
stream is not orientated.

* acinclude.m4: Add config/c_io_libio_codecvt.c dummy file, until
encoding gets fleshed out.

* bits/basic_file.h: Add specialization declarations.
* config/c_io_libio.cc: Add specializations for pbackfail, uflow.

* config/c_io_libio.h: Add __c_wfile_type.
* bits/basic_file.h: Add _M_wfile.

* config/c_io_libio.cc (__basic_file<char>): Initialize the
streams without setting the orientation of the underlying FILE to
either wide or narrow.
(__basic_file<wchar_t>)): Enable tricky wchar_t io bits.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@35584 138bc75d-0d04-0410-961f-82ee72b054a4
16 files changed:
libstdc++-v3/ChangeLog
libstdc++-v3/acinclude.m4
libstdc++-v3/aclocal.m4
libstdc++-v3/bits/basic_file.h
libstdc++-v3/bits/fstream.tcc
libstdc++-v3/config/c_io_libio.cc
libstdc++-v3/config/c_io_libio.h
libstdc++-v3/configure
libstdc++-v3/docs/configopts.html
libstdc++-v3/libio/ChangeLog
libstdc++-v3/libio/Makefile.am
libstdc++-v3/libio/Makefile.in
libstdc++-v3/libio/genops.c
libstdc++-v3/libio/iofwide.c
libstdc++-v3/testsuite/21_strings/inserters_extractors.cc
libstdc++-v3/testsuite/27_io/ostream_inserter_other.cc