]> git.ipfire.org Git - thirdparty/gcc.git/commit - libstdc++-v3/testsuite/22_locale/codecvt/out/wchar_t/6.cc
[multiple changes]
authorBenjamin Kosnik <bkoz@gcc.gnu.org>
Thu, 6 Feb 2003 06:24:21 +0000 (06:24 +0000)
committerBenjamin Kosnik <bkoz@gcc.gnu.org>
Thu, 6 Feb 2003 06:24:21 +0000 (06:24 +0000)
commite61c8e230ac099c617f5daf275ab7c020935237c
tree5b66a4db806018fb8b5a582655230d4ceea85b36
parent2e2a38cd06646304a0d566ee0b6eca09a22df1b8
[multiple changes]

2003-02-06  Benjamin Kosnik  <bkoz@redhat.com>

* testsuite/22_locale/codecvt/encoding/wchar_t/1.cc (test01):
Explicitly use the "C" locale.
* testsuite/22_locale/codecvt/max_length/wchar_t/1.cc (test01): Same.

2003-02-06  Petur Runolfsson  <peturr02@ru.is>

DR 75
DR 305
PR libstdc++/9028 (partial)
PR libstdc++/9224
PR libstdc++/9246
PR libstdc++/9247

* src/codecvt.cc
(codecvt<wchar_t, char, mbstate_t>::do_encoding,
codecvt<wchar_t, char, mbstate_t>::do_length,
codecvt<wchar_t, char, mbstate_t>::do_max_length):
Move...
* config/locale/generic/codecvt_members.cc:  ...here.
* config/locale/gnu/codecvt_members.cc:  ...and here.

* config/locale/generic/codecvt_members.cc,
* config/locale/gnu/codecvt_members.cc
(codecvt<wchar_t, char, mbstate_t>::do_encoding
codecvt<wchar_t, char, mbstate_t>::do_in,
codecvt<wchar_t, char, mbstate_t>::do_length,
codecvt<wchar_t, char, mbstate_t>::do_max_length,
codecvt<wchar_t, char, mbstate_t>::do_out):
New implementation that handles stateless encodings,
including UTF-8.

* config/locale/generic/codecvt_members.cc,
* config/locale/gnu/codecvt_members.cc,
* config/locale/ieee_1003.1-2001/codecvt_specializations.h,
* include/bits/codecvt.h,
* src/codecvt.cc
(codecvt::length, codecvt::do_length):
Change type of first argument of length and do_length from
'const state_type&' to 'state_type&' according to DR 75.

* testsuite/22_locale/codecvt/always_noconv/wchar_t/1.cc:  Cleanup.
* testsuite/22_locale/codecvt/always_noconv/wchar_t/2.cc:  New test.
* testsuite/22_locale/codecvt/always_noconv/wchar_t/3.cc:  New test.
* testsuite/22_locale/codecvt/always_noconv/wchar_t/4.cc:  New test.
* testsuite/22_locale/codecvt/encoding/wchar_t/1.cc:
Cleanup and check for correct return value from encoding
for "C" locale.
* testsuite/22_locale/codecvt/encoding/wchar_t/2.cc:  New test.
* testsuite/22_locale/codecvt/encoding/wchar_t/3.cc:  New test.
* testsuite/22_locale/codecvt/encoding/wchar_t/4.cc:  New test.
* testsuite/22_locale/codecvt/in/wchar_t/1.cc:  Cleanup.
* testsuite/22_locale/codecvt/in/wchar_t/2.cc:  New test.
* testsuite/22_locale/codecvt/in/wchar_t/3.cc:  New test.
* testsuite/22_locale/codecvt/in/wchar_t/4.cc:  New test.
* testsuite/22_locale/codecvt/in/wchar_t/5.cc:  New test.
* testsuite/22_locale/codecvt/in/wchar_t/6.cc:  New test.
* testsuite/22_locale/codecvt/in/wchar_t/7.cc:  New test.
* testsuite/22_locale/codecvt/in/wchar_t/8.cc:  New test.
* testsuite/22_locale/codecvt/in/wchar_t/9.cc:  New test.
* testsuite/22_locale/codecvt/length/char/1.cc:  Cleanup.
* testsuite/22_locale/codecvt/length/char/2.cc:  New test.
* testsuite/22_locale/codecvt/length/wchar_t/1.cc:  Cleanup.
* testsuite/22_locale/codecvt/length/wchar_t/2.cc:  New test.
* testsuite/22_locale/codecvt/length/wchar_t/3.cc:  New test.
* testsuite/22_locale/codecvt/length/wchar_t/4.cc:  New test.
* testsuite/22_locale/codecvt/length/wchar_t/5.cc:  New test.
* testsuite/22_locale/codecvt/length/wchar_t/6.cc:  New test.
* testsuite/22_locale/codecvt/length/wchar_t/7.cc:  New test.
* testsuite/22_locale/codecvt/max_length/wchar_t/1.cc:  Cleanup.
* testsuite/22_locale/codecvt/max_length/wchar_t/2.cc:  New test.
* testsuite/22_locale/codecvt/max_length/wchar_t/3.cc:  New test.
* testsuite/22_locale/codecvt/max_length/wchar_t/4.cc:  New test.
* testsuite/22_locale/codecvt/out/wchar_t/1.cc:  Cleanup.
* testsuite/22_locale/codecvt/out/wchar_t/2.cc:  New test.
* testsuite/22_locale/codecvt/out/wchar_t/3.cc:  New test.
* testsuite/22_locale/codecvt/out/wchar_t/4.cc:  New test.
* testsuite/22_locale/codecvt/out/wchar_t/5.cc:  New test.
* testsuite/22_locale/codecvt/out/wchar_t/6.cc:  New test.
* testsuite/22_locale/codecvt/out/wchar_t/7.cc:  New test.
* testsuite/22_locale/codecvt/unicode/1.cc:  New test.
* testsuite/22_locale/codecvt/unshift/wchar_t/1.cc:  Cleanup.
* testsuite/22_locale/codecvt/unshift/wchar_t/2.cc:  New test.
* testsuite/22_locale/codecvt/unshift/wchar_t/3.cc:  New test.
* testsuite/22_locale/codecvt/unshfit/wchar_t/4.cc:  New test.

From-SVN: r62474
48 files changed:
libstdc++-v3/ChangeLog
libstdc++-v3/config/locale/generic/codecvt_members.cc
libstdc++-v3/config/locale/gnu/codecvt_members.cc
libstdc++-v3/config/locale/ieee_1003.1-2001/codecvt_specializations.h
libstdc++-v3/include/bits/codecvt.h
libstdc++-v3/src/codecvt.cc
libstdc++-v3/testsuite/22_locale/codecvt/always_noconv/wchar_t/1.cc
libstdc++-v3/testsuite/22_locale/codecvt/always_noconv/wchar_t/2.cc [new file with mode: 0644]
libstdc++-v3/testsuite/22_locale/codecvt/always_noconv/wchar_t/3.cc [new file with mode: 0644]
libstdc++-v3/testsuite/22_locale/codecvt/always_noconv/wchar_t/4.cc [new file with mode: 0644]
libstdc++-v3/testsuite/22_locale/codecvt/encoding/wchar_t/1.cc
libstdc++-v3/testsuite/22_locale/codecvt/encoding/wchar_t/2.cc [new file with mode: 0644]
libstdc++-v3/testsuite/22_locale/codecvt/encoding/wchar_t/3.cc [new file with mode: 0644]
libstdc++-v3/testsuite/22_locale/codecvt/encoding/wchar_t/4.cc [new file with mode: 0644]
libstdc++-v3/testsuite/22_locale/codecvt/in/wchar_t/1.cc
libstdc++-v3/testsuite/22_locale/codecvt/in/wchar_t/2.cc [new file with mode: 0644]
libstdc++-v3/testsuite/22_locale/codecvt/in/wchar_t/3.cc [new file with mode: 0644]
libstdc++-v3/testsuite/22_locale/codecvt/in/wchar_t/4.cc [new file with mode: 0644]
libstdc++-v3/testsuite/22_locale/codecvt/in/wchar_t/5.cc [new file with mode: 0644]
libstdc++-v3/testsuite/22_locale/codecvt/in/wchar_t/6.cc [new file with mode: 0644]
libstdc++-v3/testsuite/22_locale/codecvt/in/wchar_t/7.cc [new file with mode: 0644]
libstdc++-v3/testsuite/22_locale/codecvt/in/wchar_t/8.cc [new file with mode: 0644]
libstdc++-v3/testsuite/22_locale/codecvt/in/wchar_t/9.cc [new file with mode: 0644]
libstdc++-v3/testsuite/22_locale/codecvt/length/char/1.cc
libstdc++-v3/testsuite/22_locale/codecvt/length/char/2.cc [new file with mode: 0644]
libstdc++-v3/testsuite/22_locale/codecvt/length/wchar_t/1.cc
libstdc++-v3/testsuite/22_locale/codecvt/length/wchar_t/2.cc [new file with mode: 0644]
libstdc++-v3/testsuite/22_locale/codecvt/length/wchar_t/3.cc [new file with mode: 0644]
libstdc++-v3/testsuite/22_locale/codecvt/length/wchar_t/4.cc [new file with mode: 0644]
libstdc++-v3/testsuite/22_locale/codecvt/length/wchar_t/5.cc [new file with mode: 0644]
libstdc++-v3/testsuite/22_locale/codecvt/length/wchar_t/6.cc [new file with mode: 0644]
libstdc++-v3/testsuite/22_locale/codecvt/length/wchar_t/7.cc [new file with mode: 0644]
libstdc++-v3/testsuite/22_locale/codecvt/max_length/wchar_t/1.cc
libstdc++-v3/testsuite/22_locale/codecvt/max_length/wchar_t/2.cc [new file with mode: 0644]
libstdc++-v3/testsuite/22_locale/codecvt/max_length/wchar_t/3.cc [new file with mode: 0644]
libstdc++-v3/testsuite/22_locale/codecvt/max_length/wchar_t/4.cc [new file with mode: 0644]
libstdc++-v3/testsuite/22_locale/codecvt/out/wchar_t/1.cc
libstdc++-v3/testsuite/22_locale/codecvt/out/wchar_t/2.cc [new file with mode: 0644]
libstdc++-v3/testsuite/22_locale/codecvt/out/wchar_t/3.cc [new file with mode: 0644]
libstdc++-v3/testsuite/22_locale/codecvt/out/wchar_t/4.cc [new file with mode: 0644]
libstdc++-v3/testsuite/22_locale/codecvt/out/wchar_t/5.cc [new file with mode: 0644]
libstdc++-v3/testsuite/22_locale/codecvt/out/wchar_t/6.cc [new file with mode: 0644]
libstdc++-v3/testsuite/22_locale/codecvt/out/wchar_t/7.cc [new file with mode: 0644]
libstdc++-v3/testsuite/22_locale/codecvt/unicode/1.cc [new file with mode: 0644]
libstdc++-v3/testsuite/22_locale/codecvt/unshift/wchar_t/1.cc
libstdc++-v3/testsuite/22_locale/codecvt/unshift/wchar_t/2.cc [new file with mode: 0644]
libstdc++-v3/testsuite/22_locale/codecvt/unshift/wchar_t/3.cc [new file with mode: 0644]
libstdc++-v3/testsuite/22_locale/codecvt/unshift/wchar_t/4.cc [new file with mode: 0644]