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

[HOST provider] Short era display name is not returned

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: P3 P3
    • 9
    • 8, 8u45, 9
    • core-libs
    • In my test, it's Windows 7.

    • 8
    • b101
    • generic
    • windows

      On windows 7 en_US, the short era display name of AD detected by .net is "AD". My application is a .net exe file, but the Framework should get the data from windows.

      In Java 8, when -Djava.locale.providers=HOST, the short display name of AD got from Calender or SimpleDateFormat is "A.D.", different from what is in windows (AD).

      In http://msdn.microsoft.com/en-us/library/windows/desktop/dd317734%28v=vs.85%29.aspx,
      there is:
      CAL_SABBREVERASTRING Windows 7 and later: Abbreviated native name of an era. The full era is represented by the CAL_SERASTRING constant.

            naoto Naoto Sato
            yhuang Yong Huang (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

              Created:
              Updated:
              Resolved: