Details
-
Bug
-
Status: Closed
-
Trivial
-
Resolution: Fixed
-
4.1.2, 4.1.3
-
None
Description
On Apr 30, 4:56 am, Dancefire <Dancef...@gmail.com> 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;