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/03/26 22:20:32 UTC

[jira] Created: (STDCXX-371) locale strips trailing currency_symbol characters

locale strips trailing currency_symbol characters
-------------------------------------------------

                 Key: STDCXX-371
                 URL: https://issues.apache.org/jira/browse/STDCXX-371
             Project: C++ Standard Library
          Issue Type: Bug
          Components: Utilities
    Affects Versions: 4.1.3
            Reporter: 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 
LC_MONETARY
int_curr_symbol       "ABCD"
currency_symbol       "klmn"
END LC_MONETARY

currency_symbol="k"
ABCD
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.


[jira] Resolved: (STDCXX-371) locale strips trailing currency_symbol characters

Posted by "Martin Sebor (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/STDCXX-371?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Martin Sebor resolved STDCXX-371.
---------------------------------

       Resolution: Fixed
    Fix Version/s: 4.2

Fixed with the referenced change.

> locale strips trailing currency_symbol characters
> -------------------------------------------------
>
>                 Key: STDCXX-371
>                 URL: https://issues.apache.org/jira/browse/STDCXX-371
>             Project: C++ Standard Library
>          Issue Type: Bug
>          Components: Utilities
>    Affects Versions: 4.2
>            Reporter: Martin Sebor
>         Assigned To: Martin Sebor
>            Priority: Minor
>             Fix For: 4.2
>
>
> 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 
> LC_MONETARY
> int_curr_symbol       "ABCD"
> currency_symbol       "klmn"
> END LC_MONETARY
> currency_symbol="k"
> ABCD
> 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.


[jira] Assigned: (STDCXX-371) locale strips trailing currency_symbol characters

Posted by "Martin Sebor (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/STDCXX-371?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Martin Sebor reassigned STDCXX-371:
-----------------------------------

    Assignee: Martin Sebor

> locale strips trailing currency_symbol characters
> -------------------------------------------------
>
>                 Key: STDCXX-371
>                 URL: https://issues.apache.org/jira/browse/STDCXX-371
>             Project: C++ Standard Library
>          Issue Type: Bug
>          Components: Utilities
>    Affects Versions: 4.1.3
>            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 
> LC_MONETARY
> int_curr_symbol       "ABCD"
> currency_symbol       "klmn"
> END LC_MONETARY
> currency_symbol="k"
> ABCD
> 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.


[jira] Updated: (STDCXX-371) locale strips trailing currency_symbol characters

Posted by "Martin Sebor (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/STDCXX-371?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Martin Sebor updated STDCXX-371:
--------------------------------

    Affects Version/s:     (was: 4.1.3)
                       4.2

This doesn't appear to affect 4.1.3.

> locale strips trailing currency_symbol characters
> -------------------------------------------------
>
>                 Key: STDCXX-371
>                 URL: https://issues.apache.org/jira/browse/STDCXX-371
>             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 
> LC_MONETARY
> int_curr_symbol       "ABCD"
> currency_symbol       "klmn"
> END LC_MONETARY
> currency_symbol="k"
> ABCD
> 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.