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

[ar/HOST adapter] Hijri calendar era is used but date number follows gregorian

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: P4 P4
    • 9
    • 8
    • core-libs
    • None
    • When I fully turn my windows 7 into ar (including UI) and reboot the machine, the OS is crashed.

      My test is on windows 2008, it's turned into ar_EG with Hijri calendar as the default, but I do not reboot the machine to make the UI into ar.

    • 8
    • b101
    • generic
    • windows

      Change windows Format locale to ar_EG and set Hijri calendar as the default calendar of the system.

      iCalendarType=6

      Run the attached program, DateFormatTestAR, with -Djava.locale.providers=HOST.

      The output log in UTF-8 encoding is attached.

      From google translation, the output is something like "After immigration 07/10/2014". Iooks like the era "after immigration" which means 622 A.D. is used. With this era, 07/10/2014 is incorrect.

      Since Hijra clendar is not supported by Java, even Hijra is the default calendar of the windows, the corresponding era should not be reterieved when formatting date.

      This bug is similar to JDK-8039969, but happens in Arabic.

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

              Created:
              Updated:
              Resolved: