]> git.ipfire.org Git - thirdparty/gcc.git/commit
codecvt_unicode_char.cc (test01): Adjust creation of state_type for unicode_codecvt...
authorBenjamin Kosnik <bkoz@purist.soma.redhat.com>
Fri, 20 Oct 2000 06:52:00 +0000 (06:52 +0000)
committerBenjamin Kosnik <bkoz@gcc.gnu.org>
Fri, 20 Oct 2000 06:52:00 +0000 (06:52 +0000)
commit7dc08a20ed152a5ab2e5dd47d630b58665a238e0
treef636463967a6165e1d3ebad73afbe65d2073ecbf
parentc20118a81159621ad3f438d7b24146328929ccc7
codecvt_unicode_char.cc (test01): Adjust creation of state_type for unicode_codecvt to take into account the byte...

2000-10-19  Benjamin Kosnik  <bkoz@purist.soma.redhat.com>

* testsuite/22_locale/codecvt_unicode_char.cc (test01): Adjust
creation of state_type for unicode_codecvt to take into account
the byte order markings. Add distinct tests for UCS-2BE and UCS-2LE.
* testsuite/22_locale/codecvt_unicode_wchar_t.cc (test01): Same.
* include/bits/codecvt.h (__enc_traits): Add support for encodings
that need a byte order marker. Needed for correct unicode support.

* src/locale.cc: Remove explicit qualification std::.
(locale::locale(const char* __name)): Revert, as named locale
support not finished.
* src/localename.cc (locale::_Impl:: _Impl(size_t __numfacets,
size_t __refs, bool __has_name = false, string __name): Move
default argument...
* include/bits/localefwd.h: Here.

From-SVN: r36959
libstdc++-v3/ChangeLog
libstdc++-v3/include/bits/codecvt.h
libstdc++-v3/include/bits/localefwd.h
libstdc++-v3/src/locale.cc
libstdc++-v3/src/localename.cc
libstdc++-v3/testsuite/22_locale/codecvt_unicode_char.cc
libstdc++-v3/testsuite/22_locale/codecvt_unicode_wchar_t.cc