JDK-4685470 : Dateformat has no day of the week with FULL option on Japanese, Simplified and T
  • Type: Bug
  • Component: globalization
  • Sub-Component: translation
  • Affected Version: 1.4.0
  • Priority: P4
  • Status: Resolved
  • Resolution: Fixed
  • OS: windows_2000
  • CPU: x86
  • Submitted: 2002-05-15
  • Updated: 2002-07-24
  • Resolved: 2002-07-24
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.
Other
1.4.1 rcFixed
Related Reports
Relates :  
Relates :  
Relates :  
Description

Name: dk106046			Date: 05/15/2002

Full JDK version(s) (from java -version) : JDK 1.2.2 , JDK 1.3.0 , JDK 1.3.1 and JDK 1.4

1. Compile and run the DateDemo.java testcase below.
2. While running this testcase, run separately on a Win2K Japanese, Simplified Chinese and Traditional Chinese machines and observe that the Day of the week is not a part of the output while the day of the week appears in the English Locale.

import java.util.*;
import java.text.*;
public class DateDemo                        
{
   public static void main(String args[])
   {
      Locale loc = Locale.getDefault();
      String encode = loc.getLanguage() + "_" + loc.getCountry();
      System.out.println(encode);
      Date now = new Date();
      DateFormat s = DateFormat.getDateTimeInstance(DateFormat.FULL,DateFormat.FULL,loc);
      System.out.println(s.format(now));
      Locale us = Locale.US;
      encode = us.getLanguage() + "_" + us.getCountry();
      System.out.println(encode);
      s = DateFormat.getDateTimeInstance(DateFormat.FULL,DateFormat.FULL,us);
      System.out.println(s.format(now));
   }
}

======================================================================

Comments
CONVERTED DATA BugTraq+ Release Management Values COMMIT TO FIX: hopper-rc FIXED IN: hopper-rc INTEGRATED IN: hopper-rc
14-06-2004

EVALUATION which effect by default long date and time pattern, so change it. ******** l10n evaluation template - begin *********** Evaluation : update the default full date pattern or time pattern for it, and effect file LocaleElements_zh.java, LocaleElements_zh_TW.java and LocaleElements_ja.java sccsdiff info (e.g. sccs diffs -r1.30 1.31 Activator_fr.java): % sccsdiff -r1.23 -r1.24 SCCS/s.LocaleElements_ja.java ------- LocaleElements_ja.java ------- 473c473 < "yyyy'\u5e74'M'\u6708'd'\u65e5'", // full date pattern --- > "yyyy'\u5e74'M'\u6708'd'\u65e5' (EEEE)", // full date pattern % sccsdiff -r1.18 -r1.19 SCCS/s.LocaleElements_zh.java ------- LocaleElements_zh.java ------- 454c454 < "HH'\u65f6'mm'\u5206'ss'\u79d2' z", // full time pattern --- > "aHH'\u65f6'mm'\u5206'ss'\u79d2' z", // full time pattern 458c458 < "yyyy'\u5e74'M'\u6708'd'\u65e5'", // full date pattern --- > "yyyy'\u5e74'M'\u6708'd'\u65e5' EEEE", // full date pattern % sccsdiff -r1.23 -r1.24 SCCS/s.LocaleElements_zh_TW.java ------- LocaleElements_zh_TW.java ------- 408c408 < "yyyy'\u5e74'M'\u6708'd'\u65e5'", // full date pattern --- > "yyyy'\u5e74'M'\u6708'd'\u65e5' EEEE", // full date pattern List file(s) to be delivered : src/share/classes/sun/text/resources/LocaleElements_ja.java src/share/classes/sun/text/resources/LocaleElements_zh.java src/share/classes/sun/text/resources/LocaleElements_zh_TW.java Target Build : Hopper Additional Info : ******** l10n evaluation template - end*********** ###@###.### 2002-07-11
11-07-2002