Ticket #6367 (closed defect: fixed)

Bug contains 2 commit(s) | SVN Diffs for #6367

 

Opened 7 months ago

Last modified 4 months ago

Number parsing with nbsp

Reported by: emmons Assigned to: srl
Priority: critical Milestone: 4.0
Component: formatting Version: Current
Keywords: Cc:
Load: Xref:
Java Version: Operating System:
Project (C/J): all Weeks:
Review: emmons

Description

In the course of doing the data integration of CLDR 1.6, it seems that number format parsing is having trouble with the fact that CLDR currency and percent formats now contain non-breaking spaces instead of regular spaces. This causes currency formats that contain a non-breaking space after the currency symbol to not round-trip properly when the last character of the currency symbol is a RLM.

I suspect that the problem is in the logic in i18n/decimfmt.cpp, DecimalFormat::compareSimpleAffix(), since regular space isRuleWhiteSpace(), but nbsp is not.

Changing the isRuleWhiteSpace() to include 00A0 does appear to fix the problem, but may cause unwanted side effects.

Attachments

Change History

06/23/08 22:17:41 changed by srl

  • revw set to emmons.

09/17/08 10:22:35 changed by emmons

  • status changed from new to closed.
  • resolution set to fixed.

Add/Change #6367 (Number parsing with nbsp)




Anti spam check: