Ticket #6620 (closed defect: fixed)

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

 

Opened 1 year ago

Last modified 1 year ago

Default locale always taken for lenient parse of RuleBasedNumberFormat

Reported by: lapalme@... Assigned to: doug
Priority: medium Milestone: UNSCH
Component: formatting Version: 4.0
Keywords: Cc:
Load: Xref:
Java Version: 1.5 Operating System:
Project (C/J): ICU4J Weeks:
Review: yoshito

Description

In the context in which I had to use an English and French RuleBasedNumberFormat instance, I realized that when parsing numbers followed by units in letters, the default locale is always used and not the one specified in the instance.

The attached file shows a simple test to illustrate the problem.

The workaround is to set the default locale before each parse but this is a bit awkward.

Guy Lapalme Université de Montréal

Attachments

TestLocale.java (3.0 kB) - added by lapalme@iro.umontreal.ca on 11/09/08 15:18:20.

Change History

11/09/08 15:18:20 changed by lapalme@...

  • attachment TestLocale.java added.

11/26/08 11:10:13 changed by doug

  • status changed from new to assigned.
  • xref changed.
  • priority changed from assess to medium.
  • owner changed from somebody to doug.
  • weeks changed.
  • revw changed.

12/02/08 09:57:34 changed by doug

  • revw set to yoshito.

12/03/08 12:56:52 changed by yoshito

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

12/10/08 14:55:43 changed by yoshito

  • status changed from closed to reopened.
  • resolution deleted.

The test case fails because I asked Doug to hold the RBNF rule data update. The update of the data is not actually related to this specific problem. So I reopen this ticket and modify the test case based on the current English RBNF rule. John will refactor/refresh the entire RBNF rule data along with the data migration to CLDR.

12/15/08 22:37:43 changed by yoshito

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

Add/Change #6620 (Default locale always taken for lenient parse of RuleBasedNumberFormat)




Anti spam check: