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

reopen bug 4244752: month names in Estonian should be lowercase

XMLWordPrintable

    • b80
    • x86
    • linux
    • Verified

      FULL PRODUCT VERSION :
      java version "1.6.0_15"
      Java(TM) SE Runtime Environment (build 1.6.0_15-b03)
      Java HotSpot(TM) Client VM (build 14.1-b02, mixed mode)


      ADDITIONAL OS VERSION INFORMATION :
      openSUSE 11.1 (Linux 2.6.27.25-0.1-default #1 SMP 2009-07-01 15:37:09 +0200 x86_64 x86_64 x86_64 GNU/Linux)

      A DESCRIPTION OF THE PROBLEM :
      Month names (and their abbreviations) in dates should be in lower case (as they are in Finnish, for example).

      STEPS TO FOLLOW TO REPRODUCE THE PROBLEM :
      Run the code example below.

      EXPECTED VERSUS ACTUAL BEHAVIOR :
      EXPECTED -
      The example program below should give the output

      neljapäev, 22. veebruar 1996. a
      22. veebr 1996

      ACTUAL -
      The example program below gives the output

      neljapäev, 22. Veebruar 1996. a
      22. Veebr 1996


      REPRODUCIBILITY :
      This bug can be reproduced always.

      ---------- BEGIN SOURCE ----------
      import java.util.*;
      import java.text.*;

      class DateLocaleTest {
      public static void main(String[] args) {
      Date date = new Date(824999928046L);
      Locale locale = new Locale("et");
      System.out.println(DateFormat.getDateInstance(DateFormat.LONG, locale).format(date));
      System.out.println(new SimpleDateFormat("d. MMM yyyy", locale).format(date));
      }
      }

      ---------- END SOURCE ----------

      CUSTOMER SUBMITTED WORKAROUND :
      Add the following statement to your date formatting code:

      if (locale.getLanguage().equals("et")) {
        formattedDate = formattedDate.toLowerCase(locale);
      }

            katakai Masaki Katakai
            ndcosta Nelson Dcosta (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: