JDK-6645405 : Errors in Hungarian local-specific formatting. (L10N part of 6609703)
  • Type: Bug
  • Component: globalization
  • Sub-Component: translation
  • Affected Version: 5.0
  • Priority: P4
  • Status: Resolved
  • Resolution: Fixed
  • OS: generic
  • CPU: generic
  • Submitted: 2007-12-26
  • Updated: 2010-07-29
  • Resolved: 2008-02-14
The Version table provides details related to the release that this issue/RFE will be addressed.

Unresolved : Release in which this issue/RFE will be addressed.
Resolved: Release in which this issue/RFE has been resolved.
Fixed : Release in which this issue/RFE has been fixed. The release containing this fix may be available for download as an Early Access Release or a General Availability Release.

To download the current JDK release, click here.
JDK 6 JDK 7 Other
6u10 b12Fixed 7Fixed OpenJDK6Fixed
Related Reports
Relates :  
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 > 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.
11-01-2008

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
08-01-2008

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