[
https://issues.apache.org/jira/browse/STDCXX-399?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Martin Sebor closed STDCXX-399.
-------------------------------
Resolution: Fixed
> codecvt.cpp example uses uninitialized mbstate_t
> ------------------------------------------------
>
> Key: STDCXX-399
> URL: https://issues.apache.org/jira/browse/STDCXX-399
> Project: C++ Standard Library
> Issue Type: Bug
> Components: Documentation
> Affects Versions: 4.1.3, 4.1.2
> Reporter: Martin Sebor
> Assigned To: Martin Sebor
> Priority: Trivial
> Fix For: 4.2
>
>
> Quoting from
> http://groups.google.com/group/comp.lang.c++/tree/browse_frm/thread/85ffe366e1d65734/2276eed1d0639a15#doc_a79a047ac5f8b7a6
> On Apr 30, 4:56 am, Dancefire <[EMAIL PROTECTED]> wrote:
> > > Why not std::codecvt? A facet which you can obtain from a
> > > locale.
> >
> > oops, I miss the std::codecvt. Thank you.
> >
> > After I tried std::codecvt, I have 2 more questions.
> >
> > 1) Should we initialize mbstate_t variable? And how to initialize the
> > mbstate_t portable and in C++ way?
> >
> > Many sample code I saw on the net, didn't initialize the mbstate_t
> > variable. Such as:
> >
> > http://incubator.apache.org/stdcxx/doc/stdlibref/codecvt.html#sec12
> >
> > std::mbstate_t state;
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.