[
https://issues.apache.org/jira/browse/STDCXX-520?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12577646#action_12577646
]
Martin Sebor commented on STDCXX-520:
-------------------------------------
So it looks to me like all we need to do to make the example behave in a useful
way is to make sure the three locales exist (and that they are our own locales,
not just the system ones) before invoking the program, and that the
{{RWSTD_LOCALE_ROOT}} environment variable is set appropriately.
We can also rename the example to something more descriptive, like
{{jpcvt.cpp}}.
> codecvt1.cpp example exits with exitcode=1
> ------------------------------------------
>
> Key: STDCXX-520
> URL: https://issues.apache.org/jira/browse/STDCXX-520
> Project: C++ Standard Library
> Issue Type: Improvement
> Components: Examples
> Affects Versions: 4.1.3
> Environment: All
> Reporter: Farid Zaripov
> Assignee: Martin Sebor
> Priority: Minor
> Fix For: 4.2.1
>
> Original Estimate: 4h
> Remaining Estimate: 4h
>
> codecvt1.cpp example exits with exitcode=1 because of no requested locales
> are installed.
> The thread in mailing-list: http://www.mail-archive.com/[EMAIL
> PROTECTED]/msg03703.html
> ----------------------
> codecvt1 should probably be disabled for now (until we figure
> out how to get it to work) and it should also be renamed to
> something more descriptive. Testing three hardwired encodings
> doesn't seem like a good idea for a simple example, so maybe
> we could split it up into codecvt-sjis.cpp, codecvt-eucjp,
> and codecvt-utf8.cpp.
> ----------------------
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.