JDK-4350931 : Thousands separator not displayable for Locale.FRENCH
  • Type: Bug
  • Component: globalization
  • Sub-Component: translation
  • Affected Version: 1.3.0
  • Priority: P5
  • Status: Closed
  • Resolution: Not an Issue
  • OS: windows_nt
  • CPU: x86
  • Submitted: 2000-07-06
  • Updated: 2001-02-01
  • Resolved: 2001-02-01
Related Reports
Relates :  
Description

Name: skT45625			Date: 07/06/2000


java version "1.3.0"
Java(TM) 2 Runtime Environment, Standard Edition (build 1.3.0-C)
Java HotSpot(TM) Client VM (build 1.3.0-C, mixed mode)

The thousands separator for the French locale is not diplayable.

  DecimalFormat df = (DecimalFormat)NumberFormat.getInstance(Locale.FRENCH);
  DecimalFormatSymbols dfs = df.getDecimalFormatSymbols();
  char sep = dfs.getGroupingSeparator();
  System.out.println("French thousands separator = <"+sep+">");

Result:
  French thousands separator = <?>

In a JTextField the thousands separator doesn't show at all.

  JTextField tf = new JTextField(10);
  tf.setText(new StringBuffer("123")
                      .append(sep).append("456").toString());

Shown:
  123 456
(Review ID: 106905) 
======================================================================

Comments
EVALUATION The grouping/thousands separator in Frech is a space ie: "1 888,38F" ^^ I have run the following test case which display the correct result as space DecimalFormat df = (DecimalFormat)NumberFormat.getInstance(Locale.FRENCH); DecimalFormatSymbols dfs = df.getDecimalFormatSymbols(); char sep = dfs.getGroupingSeparator(); System.out.println("French thousands separator = <"+sep+">"); result: French thousands separator = < > Please also take a look at the following URL for more informations: http://oss.software.ibm.com/developerworks/opensource/icu/localeexplorer/en/utf-8/ wai.cheung@ireland 2001-02-01
01-02-2001