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

DateFormat is invalid for Slovak locale

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Unresolved
    • Icon: P4 P4
    • tbd
    • 8u25
    • globalization

      FULL PRODUCT VERSION :
      1.8.0_25

      ADDITIONAL OS VERSION INFORMATION :
      Windows 7

      A DESCRIPTION OF THE PROBLEM :
      When using Slovak locale with DateFormat, the date gets
      improperly formatted, when using LONG and FULL styles. SHORT and MEDIUM are ok.

      The pattern is "EEEE, yyyy, MMMM d", but should be "EEEE, d. MMMM yyyy".

      This holds for both old-style DateFormat and jsr-310 DateTimeFormatter.

      This outputs "Štvrtok, 2014, decembra 17". I'm a native Slovak, and this format is really weird. Expected output is "Štvrtok, 17. decembra 2014". This is actually an American format, but with Slovak month and day names.


      See http://www.localeplanet.com/icu/sk-SK/

      The same problem applies to JDK1.7.0_55, I did not test others.


      REPRODUCIBILITY :
      This bug can be reproduced always.

            ljiang Leo Jiang (Inactive)
            webbuggrp Webbug Group
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

              Created:
              Updated: