stdcxx-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Martin Sebor (JIRA)" <>
Subject [jira] Updated: (STDCXX-371) locale strips trailing currency_symbol characters
Date Mon, 26 Mar 2007 21:31:32 GMT


Martin Sebor updated STDCXX-371:

    Affects Version/s:     (was: 4.1.3)

This doesn't appear to affect 4.1.3.

> locale strips trailing currency_symbol characters
> -------------------------------------------------
>                 Key: STDCXX-371
>                 URL:
>             Project: C++ Standard Library
>          Issue Type: Bug
>          Components: Utilities
>    Affects Versions: 4.2
>            Reporter: Martin Sebor
>         Assigned To: Martin Sebor
>            Priority: Minor
> When printing out the contents of the LC_MONETARY section the locale utility seems to
strip all but the first character from the currency_symbol (see the test case below). While
this doesn't appear to affect localized programs (since the locale generated by the localedef
utility is correct) it is causing failures in a number of locale tests (since they use a series
of localedef and locale commands to verify that the same locale can be generated from the
original sources as from the sources produced by the locale utility run on the generated locale).
> $ cat foo.src && ./localedef -w -c -f /nfs/devco/sebor/stdcxx/etc/nls/charmaps/ISO-8859-1
-i foo.src foo && LC_MONETARY=./foo ./locale -ck LC_MONETARY | grep currency_symbol
&& strings foo/LC_MONETARY 
> int_curr_symbol       "ABCD"
> currency_symbol       "klmn"
> currency_symbol="k"
> klmn
> ISO-8859-1
> ISO-8859-1

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

View raw message