JDK-6450945 : The week day for Saturday and the first week day in Romania locale are incorrect
  • Type: Bug
  • Component: globalization
  • Sub-Component: translation
  • Affected Version: 5.0
  • Priority: P4
  • Status: Resolved
  • Resolution: Fixed
  • OS: windows_xp
  • CPU: x86
  • Submitted: 2006-07-20
  • Updated: 2011-02-16
  • Resolved: 2007-01-27
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 Other JDK 6 JDK 7 Other
1.4.2_17-rev,OpenJDK6Fixed 1.4.2_18Fixed 6u10Fixed 7Fixed OpenJDK6Fixed
Description
FULL PRODUCT VERSION :
java version "1.5.0_07"
Java(TM) 2 Runtime Environment, Standard Edition (build 1.5.0_07-b03)
Java HotSpot(TM) Client VM (build 1.5.0_07-b03, mixed mode, sharing)

ADDITIONAL OS VERSION INFORMATION :
Microsoft Windows XP [Version 5.1.2600]

A DESCRIPTION OF THE PROBLEM :
The week day name for Saturday in Romanian, as returned by new DateFormatSymbols( new Locale( "ro" ) ).getWeekdays( )[Calendar.SATURDAY] is S��mb?t?. The correct name is S��mb?t?. The error is in the second character, after the capital 'S': it should be �� (\u00e2) instead of �� (\u00ee). This change was introduced in Romania around year 1995.

Also, the first day of the week, as returned by Calendar.getInstance( new Locale( "ro" ) ).getFirstDayOfWeek( ) is SUNDAY. The correct one is MONDAY.

STEPS TO FOLLOW TO REPRODUCE THE PROBLEM :
Use the 2 scenarios described above and check the returned values.

EXPECTED VERSUS ACTUAL BEHAVIOR :
EXPECTED -
The expected weekday name for saturday should be S��mb?t?.
The expected first day of week should be Calendar.MONDAY.
ACTUAL -
The returned weekday name for saturday was S��mb?t?.
The returned first day of week was Calendar.SUNDAY.

ERROR MESSAGES/STACK TRACES THAT OCCUR :
(none)

REPRODUCIBILITY :
This bug can be reproduced always.

---------- BEGIN SOURCE ----------
System.out.print( new DateFormatSymbols( new Locale( "ro" ) ).getWeekdays( )[Calendar.SATURDAY] );
System.out.print( Calendar.getInstance( new Locale( "ro" ) ).getFirstDayOfWeek( ) );
---------- END SOURCE ----------

CUSTOMER SUBMITTED WORKAROUND :
(none)

Comments
EVALUATION Unfortunatelly the reference supplied does not help because it is just talking about letter and their positions and the article is written in Romanian. Further searching in the internet brought the www.edu.ro website where I was able to find lot of articles using the "sambata" form. None has been found for "simbata" form. They are dated quite new so I will take them as a standard, especially because the information came from the educational segment. See result on: http://www.edu.ro/index.php/articles/search?q=s%C3%A2mb%C4%83t%C4%83&search=Caut%C4%83&searchtype=&ptids%5B%5D=0&status%5B%5D=2&status%5B%5D=3&articles_fields%5Btitle%5D=1&articles_fields%5Bsummary%5D=1&articles_fields%5Bbody%5D=1&articles_fields%5Bnotes%5D=1 Because of above mentioned the bug will be fixed the as requested.
13-08-2006

EVALUATION Couple of resources "voting" for Simbata version: http://www.primatv.ro/program.php?zi=6 http://suflet.artadeatrai.ro/simbata.htm http://www.iasi.ro/local/farmacii.html I'd like to ask submitter to supply official specification.
27-07-2006

EVALUATION Implement the changes the submitter requested into the j2se:src/share/classes/sun/text/resources/LocaleElements_ro.java
26-07-2006