United StatesChange Country, Oracle Worldwide Web Sites Communities I am a... I want to...
Bug ID: JDK-6645405 Errors in Hungarian local-specific formatting. (L10N part of 6609703)
JDK-6645405 : Errors in Hungarian local-specific formatting. (L10N part of 6609703)

Details
Type:
Bug
Submit Date:
2007-12-26
Status:
Resolved
Updated Date:
2010-07-29
Project Name:
JDK
Resolved Date:
2008-02-14
Component:
globalization
OS:
generic
Sub-Component:
translation
CPU:
generic
Priority:
P4
Resolution:
Fixed
Affected Versions:
5.0
Fixed Versions:
6u10 (b12)

Related Reports
Backport:
Backport:
Relates:

Sub Tasks

Description
6609703 includes two bugs which belong to different subcategories. This is for L10N part.

-----------------------------------------------------------------------
2. If a number is formatted with CurrencyFormat in the HU_hu locale, it will return 'Ft<number>'. However, in Hungarian, the currency should come after the number, with a space between them: '<number> Ft'.

Moreover, CurrencyFormat returns an asterisk-like character ('????') when the locale HU is used. The default locale on my computer is Locale.US, so I think it should return either 'Ft' or '$', but not '????'.
-----------------------------------------------------------------------

                                    

Comments
EVALUATION

Locale element CR, Jiri will take care of it.
                                     
2007-12-26
EVALUATION

The request conforms the CLDR and windows format. Fixing as requested.
------- FormatData_hu_HU.java -------
38c38
<                     "\u00A4#,##0.##;-\u00A4#,##0.##", // currency pattern
---
>                     "#,##0.## \u00A4;-#,##0.## \u00A4", // currency pattern
                                     
2008-01-08
EVALUATION

> Moreover, CurrencyFormat returns an asterisk-like character ('????') when the 
> locale HU is used. The default locale on my computer is Locale.US, so I think
> it should return either 'Ft' or '$', but not '????'.

I suspect that the submitter may be using a CurrencyFormatter without
specifying a valid country code.
(e.g. NumberFormat.getCurrencyInstance(new Locale("hu", "") on Locale.US environment.)

In this case, its formatted result becomes the same as what the submitter complained
because the formatter cannot find any valid currency code which depends on a country
and the default currency sign (\u00a4) is used.

Please use one of the following codes if the submitter would like to get '$' or "Ft".
  NumberFormat.getCurrencyInstance() --- '$' is used.
  NumberFormat.getCurrencyInstance(new Locale("hu", "HU")) --- "Ft" is used.
                                     
2008-01-11



Hardware and Software, Engineered to Work Together