STEPS:
1. compile and run this source
-----
import java.text.Collator;
import java.util.Locale;
public class b {
public static void main(String args[]) {
Collator col = Collator.getInstance(new Locale("es", "ES"));
System.out.println(col.compare("cx", "chx"));
}
}
-----
On 1.1.5 or prior this retruns "-1". But 1.1.6 "G" and 1.2 beta3 "I", returns "1".
koushi.takahashi@japan 1998-02-26
---------
The result returns the "1" on kestrel-linux-rc1-b10
keiko.nakayama@Eng 2000-07-17
----------
That sample code returns "1" on 1.3.0-beta_refresh any Solaris versions (both sparc and intel)
>java -fullversion
java full version "1.3.0-beta_refresh"
osamu.numayama@Japan 2000-08-02
----------
- duplicates
-
JDK-4323737 Localizable Collation: German collation is not working correctly in JRE 1.3 RC2
- Closed
-
JDK-4152299 CollationElements missing from de (German) locale
- Closed
- relates to
-
JDK-4423383 [Col] Unexpected results with RuleBasedCollator in German locale
- Closed