JDK-4749528 : In Catalonia, first day of week is monday, not sunday
  • Type: Bug
  • Component: globalization
  • Sub-Component: translation
  • Affected Version: 1.4.1
  • Priority: P3
  • Status: Closed
  • Resolution: Fixed
  • OS: linux
  • CPU: x86
  • Submitted: 2002-09-18
  • Updated: 2005-05-27
  • Resolved: 2002-11-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 mantisFixed
Related Reports
Relates :  
Relates :  
Description

Name: nt126004			Date: 09/18/2002


FULL PRODUCT VERSION :
(On linux)
java version "1.4.1-rc"
Java(TM) 2 Runtime Environment, Standard Edition (build 1.4.1-rc-b19)
Java HotSpot(TM) Client VM (build 1.4.1-rc-b19, mixed mode)

(On Microsoft Windows 95)
java version "1.4.0"
Java(TM) 2 Runtime Environment, Standard Edition (build 1.4.0-b92)
Java HotSpot(TM) Client VM (build 1.4.0-b92, mixed mode)


FULL OPERATING SYSTEM VERSION (1):
Red Hat Linux release 7.2 (Enigma)

ADDITIONAL OPERATING SYSTEMS (1):
Kernel 2.4.7-10 on an i686

FULL OPERATING SYSTEM VERSION (2):
Microsoft Windows 95

ADDITIONAL OPERATING SYSTEMS (2):
4.00.950 B (Spanish)



A DESCRIPTION OF THE PROBLEM :
In catalonia, we use Monday as first day of week, as in
Spain, France, Italy..., not Sunday, as in UK, US,...
I was finding a government organization which supports that
Monday shoud be the first day of week, but "they don't know
what department is".
Fortunately http://oss.software.ibm.com/cgi-bin/icu/lx/en/?_=ca_ES&
supports it (and is your reference), although
parent version sets (wrong) Sunday as first day of week.
I downloaded and tested 1.4.1 RC, and bug also exists.

STEPS TO FOLLOW TO REPRODUCE THE PROBLEM :
1. Compile and run the enclosed source code.

EXPECTED VERSUS ACTUAL BEHAVIOR :
Actual results:
First day of week is 1

Expected results:
First day of week is 2


REPRODUCIBILITY :
This bug can be reproduced always.

---------- BEGIN SOURCE ----------
import java.util.Calendar;
import java.util.Locale;

public class TestLocale {
 public static void main(String[] args) {
   Calendar caCalendar = Calendar.getInstance(new Locale("ca", "ES"));
   System.out.println("First day of week is " + caCalendar.getFirstDayOfWeek());
 }
}

---------- END SOURCE ----------
(Review ID: 164248) 
======================================================================

Comments
EVALUATION Dear all, The reported issue has also come up from SAP. They are also very interested in the fix. Could you inform me about the version where this issue is tentatively to be fixed. I see that it is projected for the Mantis version, but I'm unaware of the exact version information and build. Could you revert back with this information please? Thanks, MS
25-11-2009

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

EVALUATION We will fix this in 1.4.2 and provide a regression test case. ###@###.### 2002-09-20 ###@###.### 2002-10-14 ******** l10n evaluation template - begin *********** Evaluation : Added the new "DateTimeElements" element to the file to force trhe first day of the week to monday. sccsdiff info (e.g. sccs diffs -r1.30 1.31 Activator_fr.java): sccs diffs LocaleElements_ca_ES.java ------- LocaleElements_ca_ES.java ------- 47a48,53 > { > new String[] { > "2", // first day of week > "1" // min days in first week > } > }, List file(s) to be delivered : src/share/classes/sun/text/resources/LocaleElements_ca_ES.java Target Build : Mantis Additional Info : See my evaluation for 4527203. All euro locales should have monday as the first day of the week. ******** l10n evaluation template - end***********
11-06-2004