United StatesChange Country, Oracle Worldwide Web Sites Communities I am a... I want to...
Bug ID: JDK-7171028 dots are missed in the datetime for Slovanian
JDK-7171028 : dots are missed in the datetime for Slovanian

Details
Type:
Bug
Submit Date:
2012-05-23
Status:
Closed
Updated Date:
2012-12-20
Project Name:
JDK
Resolved Date:
2012-11-02
Component:
globalization
OS:
linux
Sub-Component:
locale-data
CPU:
x86
Priority:
P4
Resolution:
Fixed
Affected Versions:
7
Fixed Versions:

Related Reports
Backport:

Sub Tasks

Description
FULL PRODUCT VERSION :
openjdk version "1.8.0-internal-fastdebug"
OpenJDK Runtime Environment (build 1.8.0-internal-fastdebug-deven_2012_04_28_09_59-b00)
OpenJDK Server VM (build 24.0-b07-fastdebug, mixed mode)


ADDITIONAL OS VERSION INFORMATION :
Linux deven 3.2.0-24-generic #38-Ubuntu SMP Tue May 1 16:21:07 UTC 2012 i686 i686 i386 GNU/Linux

A DESCRIPTION OF THE PROBLEM :
dots are missed in the datetime for Slovanian Locale. Tester gave the screenshot which is Marked with the problematic lines in red color [Uploaded to jira]. In English, the days are marked with st, nd, rd, th.... (1st, 2nd, 3rd, 4th, 5th, 6th), so it should be 23rd May. But in Slovenian, those marked lines should display 23. maj (1., 2., 3., 4.). Note the dot after number. Without dots, the output basically says Twenty-three May instead of the Twenty-third of May.

STEPS TO FOLLOW TO REPRODUCE THE PROBLEM :
RECREATION STEPS
1) Run the SlovenianFormatDataTest.java as follow:
java -Duser.language=sl -Duser.region=SI SlovenianFormatDataTest


EXPECTED VERSUS ACTUAL BEHAVIOR :
EXPECTED -
Expected: Date should be marked with dot(.).
ACTUAL -
Actual : Dots are not printed.

REPRODUCIBILITY :
This bug can be reproduced always.

---------- BEGIN SOURCE ----------

import java.text.DateFormat;
import java.util.Date;
import java.util.Locale;


public class SlovenianFormatDataTest {

    /**
     * @param args
     */
    public static void main(String[] args) {
        DateFormat sdf = DateFormat.getDateInstance(DateFormat.FULL, new Locale("sl", "SI"));
        String dateString = sdf.format(new Date());
        
        System.out.println(dateString);
    }
}
---------- END SOURCE ----------

                                    

Comments
EVALUATION

According to CLDR, it should be changed to in jdk/src/share/classes/sun/text/resources/FormatData_sl.java

                    "EEEE, dd. MMMM y", // full date pattern
                    "dd. MMMM y", // long date pattern
                    "d. MMM yyyy", // medium date pattern

Corresponding regression test also need to be modified.
                                     
2012-05-23
Fixed by Daven Yu
Integrated by Lana
                                     
2012-11-02
Verified in b62.
                                     
2012-11-02



Hardware and Software, Engineered to Work Together