JDK-8250665 : Wrong translation for the month of May in ar_JO, ar_LB and ar_SY
  • Type: Bug
  • Component: globalization
  • Sub-Component: locale-data
  • Affected Version: 8u251,16
  • Priority: P3
  • Status: Resolved
  • Resolution: Fixed
  • Submitted: 2020-07-28
  • Updated: 2022-06-27
  • Resolved: 2020-08-07
The Version table provides details related to the release that this issue/RFE will be addressed.

Unresolved : Release in which this issue/RFE will be addressed.
Resolved: Release in which this issue/RFE has been resolved.
Fixed : Release in which this issue/RFE has been fixed. The release containing this fix may be available for download as an Early Access Release or a General Availability Release.

To download the current JDK release, click here.
JDK 11 JDK 15 JDK 16 JDK 7 JDK 8 Other
11.0.10-oracleFixed 15.0.1Fixed 16 b11Fixed 7u271Fixed 8u281Fixed openjdk8u282Fixed
Description
Wrong translations of month name for Arabic locale in COMPAT (JRE) provider.

Test:
import java.util.Locale;
import java.util.Date;
import java.util.GregorianCalendar;
import java.text.SimpleDateFormat;

public class Test {
  public static void main(String[] args) {
    SimpleDateFormat sdf = new SimpleDateFormat("MMMM", new Locale("ar", "JO"));    
    String d = sdf.format(new GregorianCalendar(2020, 4,1).getTime()); // 0-based
    System.out.println(d);
  }
}

Expected:
Here is the complete list of wrong Arabic month names.  
(0 - Jan, 4 - May)

ar_JO

correct   4 : \u0623\u064A\u0627\u0631
incorrect 4 : \u0646\u0648\u0627\u0631

ar_LB

correct   4 : \u0623\u064A\u0627\u0631
incorrect 4 : \u0646\u0648\u0627\u0631

ar_SY

correct   4 : \u0623\u064A\u0627\u0631
incorrect 4 : \u0646\u0648\u0627\u0631\u0627\u0646

correct   5 : \u062D\u0632\u064A\u0631\u0627\u0646
incorrect 5 : \u062D\u0632\u064A\u0631

Please notice that the month of June has the wrong translation for June too.
This was addressed in Java bug 4164160 which I previously linked here, but it
was not fixed for ar_SY.
Comments
Fix Request (11u) I would like to backport this patch to 11u for parity with Oracle 11.0.10. The original patch does not apply cleanly. 11u patch has been reviewed by Andrew Hughes.
16-09-2020

Fix Request (8u) I would like to backport this patch to 8u for parity with Oracle 8u281. The original patch does not apply cleanly. 8u patch has been reviewed by Andrew Hughes.
16-09-2020

11u code review: https://mail.openjdk.java.net/pipermail/jdk-updates-dev/2020-September/003796.html
10-09-2020

8u code review: https://mail.openjdk.java.net/pipermail/jdk8u-dev/2020-September/012656.html
10-09-2020

URL: https://hg.openjdk.java.net/jdk/jdk/rev/9aa999666ccc User: ljiang Date: 2020-08-07 01:49:21 +0000
07-08-2020