Issue Details (XML | Word | Printable)

Key: STDCXX-371
Type: Bug Bug
Status: Resolved Resolved
Resolution: Fixed
Priority: Minor Minor
Assignee: Martin Sebor
Reporter: Martin Sebor
Votes: 0
Watchers: 0
Operations

If you were logged in you would be able to see more operations.
C++ Standard Library

locale strips trailing currency_symbol characters

Created: 26/Mar/07 08:19 PM   Updated: 14/Aug/07 10:05 PM
Return to search
Component/s: Utilities
Affects Version/s: None
Fix Version/s: None

Time Tracking:
Not Specified

Resolved: 26/Mar/07 11:27 PM
Resolution Date: 26/Mar/07 11:27 PM


 Description  « Hide
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



 All   Comments   Work Log   Change History   Subversion Commits      Sort Order: Ascending order - Click to sort in descending order
Martin Sebor made changes - 26/Mar/07 09:29 PM
Field Original Value New Value
Assignee Martin Sebor [ sebor ]
Martin Sebor made changes - 26/Mar/07 09:29 PM
Status Open [ 1 ] In Progress [ 3 ]
Martin Sebor made changes - 26/Mar/07 09:29 PM
Affects Version/s 4.1.3 [ 12310191 ]
Affects Version/s 4.2 [ 12311945 ]
Martin Sebor made changes - 26/Mar/07 11:27 PM
Status In Progress [ 3 ] Resolved [ 5 ]
Resolution Fixed [ 1 ]
Fix Version/s 4.2 [ 12311945 ]
Martin Sebor made changes - 14/Aug/07 10:05 PM
Fix Version/s 4.2 [ 12311945 ]
Fix Version/s trunk [ 12312676 ]
Affects Version/s trunk [ 12312676 ]
Affects Version/s 4.2 [ 12311945 ]