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

French month not spelt correctly

    XMLWordPrintable

Details

    • Bug
    • Resolution: Not an Issue
    • P4
    • None
    • None
    • globalization
    • None

    Description

      "Juil." is seen on: (https://web.library.yale.edu/cataloging/months)

      java version "1.8.0_20" gives:
      juil.

      openjdk version "18" 2022-03-22 gives:
      juill.

      import java.util.Calendar;
      import java.util.Locale;

      public class TestMonth {
          public static void main(String[] args) {
              Calendar calendar = Calendar.getInstance();
              calendar.set(2012, Calendar.JULY, 12,0,0,0);
              Locale locale = Locale.CANADA_FRENCH;
              String name = calendar.getDisplayName(Calendar.MONTH, Calendar.SHORT, locale);
              System.out.println(name);
          }
      }

      Attachments

        Activity

          People

            naoto Naoto Sato
            ssteiner Simon Steiner
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: