Formatting negative currencies is broken

Originator:thom.union
Number:rdar://15110582 Date Originated:2013-09-30
Status:Open Resolved:No
Product:iOS Product Version:7.0
Classification:Bug Reproducible:Yes
 
Summary:
Formatting negative currencies with NSNumberFormatter when currencyCode is set to PLN (some other codes too) produces wrong formatting. This bug is caused by wrong tables in CLDR. Latest CLDR table v2.4 has fixed this problem and Apple should fix this too (http://cldr.unicode.org/index/downloads/cldr-24).

Steps to Reproduce:
1. Create currency formatter:
		NSNumberFormatter *nformatter = [[NSNumberFormatter alloc] init];
		[nformatter setNumberStyle:NSNumberFormatterCurrencyStyle];
		[nformatter setCurrencyCode:currencyCode];
2. Format any negative value.
3. Negative values are in format "(123,00 zł)" instead of "-123,00 zł".

Expected Results:
Negative currency values should produce minus sign instead of taking number is parentheses. Proper formatting: "-123,00 zł".

Actual Results:
Wrong formatting: "(123,00 zł)".

Version:
7.0

Notes:
Fixed CLDR tables - http://cldr.unicode.org/index/downloads/cldr-24. Workaround is to remove parentheses by changing negative formatter by calling setNegativeFormat on formatter. 

Configuration:
iOS 7.0 - simulator and final devices.

Comments


Please note: Reports posted here will not necessarily be seen by Apple. All problems should be submitted at bugreport.apple.com before they are posted here. Please only post information for Radars that you have filed yourself, and please do not include Apple confidential information in your posts. Thank you!