You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@stdcxx.apache.org by "Martin Sebor (JIRA)" <ji...@apache.org> on 2007/04/30 21:17:15 UTC

[jira] Created: (STDCXX-399) codecvt.cpp example uses uninitialized mbstate_t

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.2, 4.1.3
            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 <Da...@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.


[jira] Closed: (STDCXX-399) codecvt.cpp example uses uninitialized mbstate_t

Posted by "Martin Sebor (JIRA)" <ji...@apache.org>.
     [ 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 <Da...@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.