Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-7171028

dots are missed in the datetime for Slovanian

    XMLWordPrintable

    Details

    • Subcomponent:
    • Resolved In Build:
      b43
    • CPU:
      x86
    • OS:
      linux
    • Verification:
      Verified

      Backports

        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 ----------

          Attachments

            Issue Links

              Activity

                People

                Assignee:
                yhuang Yong Huang (Inactive)
                Reporter:
                webbuggrp Webbug Group
                Votes:
                0 Vote for this issue
                Watchers:
                1 Start watching this issue

                  Dates

                  Created:
                  Updated:
                  Resolved:
                  Imported:
                  Indexed: