[ 
https://issues.apache.org/jira/browse/STDCXX-665?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12574626#action_12574626
 ] 

Travis Vitek commented on STDCXX-665:
-------------------------------------

This appears to be a bug in the documentation. The man page for catopen() 
says...

The *catopen* subroutine returns a catalog descriptor. If the *LC_MESSAGES* 
category is set to the default value C, and the *LC\_\_FASTMSG* environment 
variable is set to true, the *catopen* subroutine returns a value of -1.

The documentation bug is that you must set the *LC\_\_FASTMSG* environment 
variable to false to get consistent behavior with other platforms. Setting the 
variable to something other than _true_ or unsetting the variable is not 
sufficient. Again, *you must set LC\_\_FASTMSG to false to get the expected 
behavior from catopen() on AIX*. I have verified this using the above testcase.



> [IBM XLC++ 9.0/AIX 5.3] 22.locale.messages fails with assertions
> ----------------------------------------------------------------
>
>                 Key: STDCXX-665
>                 URL: https://issues.apache.org/jira/browse/STDCXX-665
>             Project: C++ Standard Library
>          Issue Type: Bug
>          Components: Tests
>    Affects Versions: 4.2.0
>            Reporter: Travis Vitek
>            Assignee: Travis Vitek
>             Fix For: 4.2.1
>
>         Attachments: stdcxx-665.patch
>
>          Time Spent: 2h
>  Remaining Estimate: 0h
>
> Currently only single threaded builds show this problem
> {noformat}
> NAME                           STATUS WARN ASSERTS FAILED PERCNT    USER     
> SYS    REAL
> 22.locale.messages                  0    0     268    106    60%   0.090   
> 0.640   3.960
> {noformat}

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

Reply via email to