Name: jl125535 Date: 01/14/2002
FULL PRODUCT VERSION :
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)
A DESCRIPTION OF THE PROBLEM :
This is not a problem or a bug. It's just a suggestion for
future implementations. I work for a company of the sector
Finance/Banking in the North of Spain (Basque Country). I
would like to be able to instantiate the locale eu_ES
(Basque_Spain) and be able to translate dates/times using
java.text.DateFormat and so on for that language which I
think it is not currently implemented.
STEPS TO FOLLOW TO REPRODUCE THE PROBLEM :
1. DateFormat df = DateFormat.getDateInstance
(DateFormat.LONG, new Locale("eu","ES");
2. String today = df.format(new Date());
EXPECTED VERSUS ACTUAL BEHAVIOR :
Let's suppose today is: Jan 2, 2002
What it displays:
2 de enero de 2002 (this is Ok but in Spanish "es_ES")
What it should display:
2002.ko Urtarrilak 2
This bug can be reproduced always.
---------- BEGIN SOURCE ----------
import java.text.*;
import java.util.*;
public class Test {
static public void main(String[] args) {
Date today = new Date();
DateFormat df = DateFormat.getDateInstance
(DateFormat.LONG, new Locale("eu","ES"));
System.out.print(df.format(today));
}
}
---------- END SOURCE ----------
CUSTOMER WORKAROUND :
Using conditional if's to treat the particular case of
eu_ES and the general classes for more common locales.
(Review ID: 137839)
======================================================================