United StatesChange Country, Oracle Worldwide Web Sites Communities I am a... I want to...
JDK-8013836 : getFirstDayOfWeek reports wrong day for pt-BR locale

Details
Type:
Bug
Submit Date:
2013-03-20
Status:
Closed
Updated Date:
2014-07-15
Project Name:
JDK
Resolved Date:
2013-06-26
Component:
globalization
OS:
Sub-Component:
locale-data
CPU:
Priority:
P3
Resolution:
Fixed
Affected Versions:
7
Fixed Versions:

Related Reports
Backport:
Backport:
Backport:
Backport:
Backport:
Duplicate:

Sub Tasks

Description
FULL PRODUCT VERSION :
All

A DESCRIPTION OF THE PROBLEM :
getFirstDayOfWeek returns MONDAY in pt-BR locale, the correct return most be SUNDAY

STEPS TO FOLLOW TO REPRODUCE THE PROBLEM :
Just call getFirstDayOfWeek with pt-BR locale

EXPECTED VERSUS ACTUAL BEHAVIOR :
EXPECTED -
SUNDAY
ACTUAL -
MONDAY

REPRODUCIBILITY :
This bug can be reproduced always.
                                    

Comments
No failures in the nighlty results. SQE OK to take the fix into CPU14_03
                                     
2014-05-08
Backport to jdk7u is requested since many products (ex: FMW/FA) are still running on jdk7.

Risk is low. The fix is to add a new locale data file with 2 lines of code:
src/share/classes/sun/util/resources/pt/CalendarData_pt_BR.properties
+firstDayOfWeek=1
+minimalDaysInFirstWeek=1
                                     
2014-05-02
Verified in b98.
                                     
2013-07-16
URL:   http://hg.openjdk.java.net/jdk8/jdk8/jdk/rev/510035b7bbbb
User:  lana
Date:  2013-07-05 18:35:47 +0000

                                     
2013-07-05
URL:   http://hg.openjdk.java.net/jdk8/tl/jdk/rev/510035b7bbbb
User:  yhuang
Date:  2013-06-26 04:06:48 +0000

                                     
2013-06-26
In CLDR (supplementaldata.xml), the first day of week in BR is Sunday. 

Change firstDayOfWeek=2 in jdk/src/share/classes/sun/util/resources/pt/CalendarData_pt.properties to firstDayOfWeek=1
                                     
2013-06-03



Hardware and Software, Engineered to Work Together