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

Incorrect FULL DateFormat in French

XMLWordPrintable

      FULL PRODUCT VERSION :
      1.6.0_02-b06

      A DESCRIPTION OF THE PROBLEM :
      The DateFormat returned by DateFormat.getInstance(DateFormat.FULL, Locale.FRENCH) is wrong.
      For the first of the month, it should show "1er".

      ex. : 1er janvier 2008

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

      import java.text.DateFormat;
      import java.util.GregorianCalendar;
      import java.util.Locale;
      public class First {
       public static void main(String[] args) {
       DateFormat dateFormat = DateFormat.getDateInstance(DateFormat.LONG, Locale.FRENCH);
       GregorianCalendar premier = new GregorianCalendar(2007,0,1);
       System.out.println(dateFormat.format(premier.getTime()));
       }
      }

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

      REPRODUCIBILITY :
      This bug can be reproduced always.

            ljiang Leo Jiang (Inactive)
            ndcosta Nelson Dcosta (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: