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

SimpleDateFormat adds extra "." for some locales

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Not an Issue
    • Icon: P4 P4
    • None
    • 11
    • core-libs
    • None
    • generic
    • os_x

      When using "EEE" or "MMM" components in a date formatting string, SimpleDateFormat will add a "." for some locales - reproducibly so for Locale.GERMANY and Locale.FRANCE, but not for others.

      See attached jshell transcript for details: UK and US locales are fine, German and French versions have the extra ".".

      I reproduced this on JDK 11 RC1 on macOS.

            naoto Naoto Sato
            mhaupt Michael Haupt
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: