JDK-7171028 : dots are missed in the datetime for Slovanian
  • Type: Bug
  • Component: globalization
  • Sub-Component: locale-data
  • Affected Version: 7
  • Priority: P4
  • Status: Closed
  • Resolution: Fixed
  • OS: linux
  • CPU: x86
  • Submitted: 2012-05-23
  • Updated: 2013-06-26
  • Resolved: 2012-11-02
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.
JDK 7 JDK 8
7u40Fixed 8 b43Fixed
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
Verified in b62.
02-11-2012

Fixed by Daven Yu Integrated by Lana
02-11-2012

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.
23-05-2012