Edgewall Software

Ticket #93 (new defect)

Opened 5 months ago

Last modified 3 days ago

Wrong currency symbols for Romanian (ro) locale

Reported by: jarek.zgoda@… Owned by: cmlenz
Priority: major Milestone: 1.0
Component: CLDR Import Version: 0.9.2
Keywords: Cc:

Description

Romanian locale has broken currency symbols in formatting for RON and ROL currencies:

>>> format_currency(123.56, 'RON', locale='ro_RO')
>>> u'123,56 0\u2264lei noi|1\u2264leu nou|1<lei noi'
>>> format_currency(123.56, 'ROL', locale='ro_RO')
>>> u'123,56 0\u2264lei vechi|1\u2264leu vechi|1<lei vechi'

Compare this to Polish locale:

>>> format_currency(123.56, 'PLN', locale='pl_PL')
>>> u'123,56 z\u0142'

In Polish locale, currency symbol is properly displayed using local currency name (zł).

Standard locale.localeconv() returns 'zł' for curr_symbol in Polish and 'Lei' in Romanian locale.

Attachments

Change History

Changed 2 months ago by jruigrok

  • owner changed from jonas to jruigrok
  • status changed from new to assigned

This is taken from the CLDR data, so any changes will have to be made there. Good chance that 1.6, due to be released soon, will have this fixed.

Changed 7 weeks ago by cmlenz

  • owner changed from jruigrok to cmlenz
  • priority changed from major to critical
  • status changed from assigned to new
  • component changed from Number Formatting to CLDR Import
  • milestone set to 0.9.4

This is actually a bug in the CLDR import script. It uses the <symbol choice="true"> element instead of <displayName>.

Changed 7 weeks ago by cmlenz

No, the real problem is that we don't support choice patterns for currency symbols, which will return a different symbol based on the value.

Changed 6 weeks ago by cmlenz

[425] changed the CLDR import process to ignore currency symbol definitions that include choice patterns, which is the only sensible thing to do as long as we don't support them at runtime.

Changed 3 days ago by cmlenz

  • priority changed from critical to major
  • milestone changed from 0.9.4 to 1.0

Add/Change #93 (Wrong currency symbols for Romanian (ro) locale)

Author



Change Properties
<Author field>
Action
as new
as The resolution will be set. Next status will be 'closed'
to The owner will change. Next status will be 'new'
The owner will change to anonymous. Next status will be 'assigned'
 
Note: See TracTickets for help on using tickets.