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.