This is the mail archive of the
libstdc++@gcc.gnu.org
mailing list for the libstdc++ project.
Re: [PATCH] Codecvt and _M_c_locale_codecvt [take2]
- From: Benjamin Kosnik <bkoz at redhat dot com>
- To: Paolo Carlini <pcarlini at unitus dot it>
- Cc: libstdc++ at gcc dot gnu dot org
- Date: Tue, 10 Sep 2002 14:10:35 -0500
- Subject: Re: [PATCH] Codecvt and _M_c_locale_codecvt [take2]
- Organization: Red Hat / Chicago
- References: <3D7E428B.5040003@unitus.it>
> 2002-09-10 Paolo Carlini <pcarlini@unitus.it>
>
> * include/bits/codecvt.h (class __codecvt_abstract_base):
> Add __c_locale type _M_c_locale_codecvt member.
> (class codecvt<char, char, mbstate_t>,
> class codecvt<wchar_t, char, mbstate_t>): Add new
> codecvt(__c_locale, size_t) constructor.
> (codecvt_byname::codecvt_byname): Update.
> * src/codecvt.cc (class codecvt<char, char, mbstate_t>,
> class codecvt<wchar_t, char, mbstate_t>): Update codecvt(size_t)
> constructor and ~codecvt() destructor; define
> codecvt(__c_locale, size_t) constructor.
> (codecvt::do_out): Switch to _M_c_locale_codecvt around
> wcsrtombs call.
> (codecvt::do_in): Ditto for mbsrtowcs call.
> * src/localename.cc (locale::_Impl::_Impl(const char*, size_t)):
> Tweak construction of codecvt facets.
looks good. Thanks!
-benjamin