French month not spelt correctly

XMLWordPrintable

    • Type: Bug
    • Resolution: Not an Issue
    • Priority: P4
    • None
    • Affects Version/s: None
    • Component/s: globalization
    • None

      "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);
          }
      }

            Assignee:
            Naoto Sato
            Reporter:
            Simon Steiner
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: