United StatesChange Country, Oracle Worldwide Web Sites Communities I am a... I want to...
Bug ID: 6450945 The week day for Saturday and the first week day in Romania locale are incorrect
6450945 : The week day for Saturday and the first week day in Romania locale are incorrect

Details
Type:
Bug
Submit Date:
2006-07-20
Status:
Resolved
Updated Date:
2011-02-16
Project Name:
JDK
Resolved Date:
2007-01-27
Component:
globalization
OS:
windows_xp
Sub-Component:
translation
CPU:
x86
Priority:
P4
Resolution:
Fixed
Affected Versions:
5.0
Fixed Versions:
5.0u12

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

Sub Tasks

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.
                                     
2006-08-13
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.
                                     
2006-07-27
EVALUATION

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



Hardware and Software, Engineered to Work Together