locale.cc (locale::locale(const char* __name)): Consolidate name setting.
authorBenjamin Kosnik <bkoz@purist.soma.redhat.com>
Fri, 15 Sep 2000 22:52:52 +0000 (22:52 +0000)
committerBenjamin Kosnik <bkoz@gcc.gnu.org>
Fri, 15 Sep 2000 22:52:52 +0000 (22:52 +0000)
commitd9fbca261ef44d0d58573baff8719a6a01ed0bca
tree2f91e95f8c9e6370828344303e0c0129ce8d7ff2
parent04807c286441c25e0997b453f308ffee25e3524e
locale.cc (locale::locale(const char* __name)): Consolidate name setting.

2000-09-15  Benjamin Kosnik  <bkoz@purist.soma.redhat.com>

        * src/locale.cc (locale::locale(const char* __name)): Consolidate
        name setting. Add checks for NULL __name pointers. Remove calls to
        _S_initialize() as initial locale initialization can either be
        assumed, or needs to be made consistent throughout locale
        constructors.
        (locale::locale(const locale& __other, const char* __name,
        category __cat): Add checks for NULL name. Add checks for
        assignment to self.
        * src/localename.cc (locale::_Impl:: _Impl(const _Impl& __other,
        const string& __name, category __cat, size_t __refs)): Set correct
        name, has_name values.
        * testsuite/22_locale/ctor_copy_dtor.cc (test01): More tests.
        * docs/22_locale/locale.html: New file, more unfinished docs...

From-SVN: r36451
libstdc++-v3/ChangeLog
libstdc++-v3/src/locale.cc
libstdc++-v3/src/localename.cc
libstdc++-v3/testsuite/22_locale/ctor_copy_dtor.cc