[PATCH] Codecvt and _M_c_locale_codecvt [take2]

Paolo Carlini pcarlini@unitus.it
Tue Sep 10 12:06:00 GMT 2002


Hi all, hi Benjamin,

I have implemented all your indications (in particular about the
additional non-standard constructor and the needed tweak of
src/localename.cc). Tested x86-Linux, as usual.

Ok for 3.3 and 3.2 too (in a couple of days, to be sure), now?

Thanks, Paolo.

/////////////

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.



-------------- next part --------------
A non-text attachment was scrubbed...
Name: patch_codecvt2
Type: application/x-java-vm
Size: 5004 bytes
Desc: not available
URL: <http://gcc.gnu.org/pipermail/libstdc++/attachments/20020910/6b53cbd2/attachment.bin>


More information about the Libstdc++ mailing list