-
Bug
-
Resolution: Not an Issue
-
P4
-
None
-
1.3.0
-
x86
-
windows_98
Name: yyT116575 Date: 03/27/2001
java version "1.3.1-beta"
Java(TM) 2 Runtime Environment, Standard Edition (build 1.3.1-beta-b15)
Java HotSpot(TM) Client VM (build 1.3.1beta-b15, mixed mode)
The thousands (grouping) separator is supposed to be a blank space (according
to information found at http://www.sprakrad.no/punktum.htm , paragraph 2d)
this was the "most official" online reference i could come up with, w.r.t.
formatting numbers and so on.... Their charter can be found at:
http://www.sprakrad.no/engelsk.htm
The current value ("\240") outputs "?", which is obviously wrong....
The problem also occurs in 1.3.0..
Here's a small program example, along with output for jre1.3.0_02....
---------- code -----
import java.util.*;
import java.text.*;
public class Q {
public static void main(String[] args) {
Locale locale=new Locale("no", "NO");
System.out.println("locale: "+locale);
NumberFormat nf=NumberFormat.getInstance(locale);
System.out.println(nf.format(1000000));
}
}
---- output ---
H:\zx>java -showversion Q
java version "1.3.0_02"
Java(TM) 2 Runtime Environment, Standard Edition (build 1.3.0_02)
Java HotSpot(TM) Client VM (build 1.3.0_02, mixed mode)
locale: no_NO
1?000?000
(Review ID: 119512)
======================================================================