United StatesChange Country, Oracle Worldwide Web Sites Communities I am a... I want to...
Bug ID: JDK-6497154 getFirstDayOfWeek() not works correctly for Slovak locale
JDK-6497154 : getFirstDayOfWeek() not works correctly for Slovak locale

Details
Type:
Bug
Submit Date:
2006-11-24
Status:
Resolved
Updated Date:
2011-02-16
Project Name:
JDK
Resolved Date:
2007-06-30
Component:
globalization
OS:
windows_xp
Sub-Component:
translation
CPU:
x86
Priority:
P4
Resolution:
Fixed
Affected Versions:
5.0
Fixed Versions:
6u4 (b01)

Related Reports
Backport:
Backport:

Sub Tasks

Description
FULL PRODUCT VERSION :
java version "1.5.0_06"
Java(TM) 2 Runtime Environment, Standard Edition (build 1.5.0_06-b05)
Java HotSpot(TM) Client VM (build 1.5.0_06-b05, mixed mode, sharing)

ADDITIONAL OS VERSION INFORMATION :
MS Windows XP (5.1.2600)

A DESCRIPTION OF THE PROBLEM :
Calendar.getInstance().getFirstDayOfWeek() returns SUNDAY for SK locale (Slovakia)


STEPS TO FOLLOW TO REPRODUCE THE PROBLEM :
set default locale to SK (Slovak Republic)
get first day of week from Calendar.getInstance()


EXPECTED VERSUS ACTUAL BEHAVIOR :
EXPECTED -
it should return MONDAY
ACTUAL -
returns SUNDAY


REPRODUCIBILITY :
This bug can be reproduced always.

                                    

Comments
EVALUATION

bug like 6414459. we should file subCRs for 7.0 and 5.0u12, right?
                                     
2006-11-27
EVALUATION

This is correct request, verified with CLDR as well as the native slovak speakers.
                                     
2006-12-05
EVALUATION

Fix:
j2se:src/share/classes/sun/util/resources/CalendarData_sk.properties
add
firstDayOfWeek=2
minimalDaysInFirstWeek=4
                                     
2007-01-08
EVALUATION

j2se:src/share/classes/sun/util/resources/CalendarData_sk.properties
------- CalendarData_sk.properties -------
25a26,29
> 
> firstDayOfWeek=2
> minimalDaysInFirstWeek=4

j2se:test/sun/text/resources/
------- LocaleData -------

> # bugs 6497154
> CalendarData/sk/firstDayOfWeek=2
> CalendarData/sk/minimalDaysInFirstWeek=4
> 

------- LocaleDataTest.java -------
10c10
<  *      6414459 6455680 6498742 6533691 6547501 6531591 6531593
---
>  *      6414459 6455680 6498742 6533691 6547501 6531591 6531593 4225362 6497154
                                     
2007-06-14



Hardware and Software, Engineered to Work Together