JDK-4960215 : REGRESSION: UK and France: bad minimal days in first week (2)
  • Type: Bug
  • Component: globalization
  • Sub-Component: translation
  • Affected Version: 5.0
  • Priority: P3
  • Status: Closed
  • Resolution: Fixed
  • OS: solaris_2.6
  • CPU: sparc
  • Submitted: 2003-11-26
  • Updated: 2004-08-18
  • Resolved: 2004-03-17
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.2_13Fixed
Related Reports
Relates :  
Description
Name: sdR10048			Date: 11/26/2003


This bug is shadow of 4944756 (which was
closed as dup of fixed bug 4518811).
Please *do not close* this one linke that - it is not fixed yet.
Mini test still fails.
And GregorianCalendar0009 still fails too.

Filed By      : SPB JCK team (###@###.###)
JDK           : java full version "1.5.0-beta-b29"
JCK           : 1.5
Platform[s]   : Solaris
switch/Mode   : 
JCK test owner : http://javaweb.eng/jct/sqe/JCK-tck/usr/owners.jto
Failing Test [s] : 
api/java_util/GregorianCalendar/index.html#Ctor[GregorianCalendar0009]
Problem description
===================
getMinimalDaysInFirstWeek returns wrong value for UK and France locales.
According to ISO 8601 the valid numbers are 4, 4 accordingly.
See some info at http://www.pjh2.de/datetime/weeknumber/wnd.php.
    
Minimized test:
===============
------- J.java -------
import java.util.*;
public class J {
    public static void main(String[] args) {
        Locale locales[] = {Locale.UK, Locale.FRANCE};
        GregorianCalendar cal = null;
        for (int i=0; i<locales.length; i++) {
            cal = new GregorianCalendar(locales[i]);
            System.out.println(locales[i] + " : " +
                               cal.getMinimalDaysInFirstWeek());
        }
    }
}
------- end-of-J.java -------
Minimized test output:
======================
] (happy) ~/tmp
] java -showversion J
java version "1.5.0-beta"
Java(TM) 2 Runtime Environment, Standard Edition (build 1.5.0-beta-b29)
Java HotSpot(TM) Client VM (build 1.5.0-beta-b29, mixed mode)

en_GB : 1
fr_FR : 1

] (happy) ~/tmp
] locale
LANG=ru_RU.KOI8-R
LC_CTYPE="ru_RU.KOI8-R"
LC_NUMERIC="ru_RU.KOI8-R"
LC_TIME="ru_RU.KOI8-R"
LC_COLLATE="ru_RU.KOI8-R"
LC_MONETARY="ru_RU.KOI8-R"
LC_MESSAGES="ru_RU.KOI8-R"
LC_PAPER="ru_RU.KOI8-R"
LC_NAME="ru_RU.KOI8-R"
LC_ADDRESS="ru_RU.KOI8-R"
LC_TELEPHONE="ru_RU.KOI8-R"
LC_MEASUREMENT="ru_RU.KOI8-R"
LC_IDENTIFICATION="ru_RU.KOI8-R"
LC_ALL=

JCK test source location:
==========================
/java/re/jck/1.5/promoted/latest/JCK-runtime-15/tests

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

Comments
CONVERTED DATA BugTraq+ Release Management Values COMMIT TO FIX: tiger-beta2 FIXED IN: tiger-beta2 INTEGRATED IN: tiger-beta2 VERIFIED IN: tiger-beta2
13-09-2004

EVALUATION The following 2 files have been updated: src/share/classes/sun/text/resources/LocaleElements_en_GB.java src/share/classes/sun/text/resources/LocaleElements_fr.java The following regression test cases have been updated: test/sun/text/resources/Calendar/Bug4518811.java test/sun/text/resources/Locale/LocaleData test/sun/text/resources/Locale/LocaleDataTest.java webrev at: http://sekai.sfbay/projects3/java_websvcs_j2se_1.5_tiger_l10n/java_websvcs_j2se_1.5_tiger_l10n/web/bugs/INT_08/4960215/ Code review approved by ###@###.###. Still waiting for one more code review. ###@###.### 2004-01-16 These same files have been fixed as part of 4518811 which has been integrated into tiger-beta2 b42. Could you please run the JCK test to verify the fix? thx! Marking the bug as integrated in tiber-beta2, so the bug reporter can verify the fix. ###@###.### 2004-03-17
17-03-2004