incubator-stdcxx-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Martin Sebor (JIRA)" <j...@apache.org>
Subject [jira] Closed: (STDCXX-399) codecvt.cpp example uses uninitialized mbstate_t
Date Mon, 30 Apr 2007 21:03:15 GMT

     [ 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 <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;

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


Mime
View raw message