From 04807c286441c25e0997b453f308ffee25e3524e Mon Sep 17 00:00:00 2001 From: Benjamin Kosnik Date: Fri, 15 Sep 2000 22:50:11 +0000 Subject: [PATCH] locale.cc (locale::locale(const char* __name)): Consolidate name setting. 2000-09-15 Benjamin Kosnik * 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 construtors. (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: r36450 --- libstdc++-v3/docs/22_locale/locale.html | 103 ++++++++++++++++++++++++++++++++ 1 file changed, 103 insertions(+) create mode 100644 libstdc++-v3/docs/22_locale/locale.html diff --git a/libstdc++-v3/docs/22_locale/locale.html b/libstdc++-v3/docs/22_locale/locale.html new file mode 100644 index 0000000..dc3510b --- /dev/null +++ b/libstdc++-v3/docs/22_locale/locale.html @@ -0,0 +1,103 @@ + + +

+ Notes on the locale implementation. +

+ + +prepared by Benjamin Kosnik (bkoz@redhat.com) on September 15, 2000 + + +

+

+1. Abstract +

+

+

+ +

+

+2. What the standard says +

+ + +

+

+3. Problems with "C" locales : global locales, termination. +

+ +

+For the required specialization codecvt<wchar_t, char, mbstate_t> , +conversions are made between the internal character set (always UCS4 +on GNU/Linux) and whatever the currently selected locale for the +LC_CTYPE category implements. + +

+

+4. Design +

+The two required specializations are implemented as follows: + + +

+

+5. Examples +

+ +
+  typedef ctype cctype;
+
+ +More information can be found in the following testcases: + + +

+

+6. Unresolved Issues +

+ + + + +

+

+7. Acknowledgments +

+ +

+

+8. Bibliography / Referenced Documents +

+ +Drepper, Ulrich, GNU libc (glibc) 2.2 manual. In particular, Chapters "6. Character Set Handling" and "7 Locales and Internationalization" + +

+Drepper, Ulrich, Numerous, late-night email correspondence + +

+ISO/IEC 14882:1998 Programming languages - C++ + +

+ISO/IEC 9899:1999 Programming languages - C + +

+Langer, Angelika and Klaus Kreft, Standard C++ IOStreams and Locales, Advanced Programmer's Guide and Reference, Addison Wesley Longman, Inc. 2000 + +

+Stroustrup, Bjarne, Appendix D, The C++ Programming Language, Special Edition, Addison Wesley, Inc. 2000 + +

+System Interface Definitions, Issue 6 (IEEE Std. 1003.1-200x) +The Open Group/The Institute of Electrical and Electronics Engineers, Inc. +http://www.opennc.org/austin/docreg.html + + -- 2.7.4