United StatesChange Country, Oracle Worldwide Web Sites Communities I am a... I want to...
JDK-6414459 : Wrong first day of week for Croatian locale

Details
Type:
Bug
Submit Date:
2006-04-18
Status:
Resolved
Updated Date:
2011-02-16
Project Name:
JDK
Resolved Date:
2006-08-18
Component:
globalization
OS:
windows_xp,windows_2000
Sub-Component:
translation
CPU:
x86
Priority:
P4
Resolution:
Fixed
Affected Versions:
1.4.2
Fixed Versions:

Related Reports
Backport:
Backport:
Backport:
Duplicate:

Sub Tasks

Description
FULL PRODUCT VERSION :
Java version number:              1.4.2_07
Java VM version:                  1.4.2_07-b05
tested also with
java.version=1.5.0_05

ADDITIONAL OS VERSION INFORMATION :
os.version=5.2

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

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

EXPECTED VERSUS ACTUAL BEHAVIOR :
EXPECTED -
is returning SUNDAY but it should be MONDAY

REPRODUCIBILITY :
This bug can be reproduced always.

---------- BEGIN SOURCE ----------
 Locale.setDefault(new Locale("HR", "HR"));
System.out.println("HR_HR = " + Calendar.getInstance().getFirstDayOfWeek());
---------- END SOURCE ----------

CUSTOMER SUBMITTED WORKAROUND :
no workaround

                                    

Comments
EVALUATION

As per http://unicode.org/cldr/data/common/supplemental/supplementalData.xml and submitter request the first day if monday.
                                     
2006-07-28



Hardware and Software, Engineered to Work Together