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

Different results for Locale.getDisplayScript(Locale) in different jdk version

XMLWordPrintable

      ADDITIONAL SYSTEM INFORMATION :
      Linux version 5.4.0-136-generic (buildd@lcy02-amd64-063) (gcc version 7.5.0 (Ubuntu 7.5.0-3ubuntu1~18.04))

      --1--
      openjdk version "1.8.0_362-internal"
      OpenJDK Runtime Environment (build 1.8.0_362-internal-root_2023_01_26_14_31-b00)
      OpenJDK 64-Bit Server VM (build 25.362-b00, mixed mode)

      --2--
      openjdk version "11.0.18-internal" 2023-01-17
      OpenJDK Runtime Environment (build 11.0.18-internal+0-adhoc.root.openjdk11-latest)
      OpenJDK 64-Bit Server VM (build 11.0.18-internal+0-adhoc.root.openjdk11-latest, mixed mode)

      A DESCRIPTION OF THE PROBLEM :
      When running the following programs, jdk8 and jdk11 display the different outputs for the same Locale instance (the results are 'Simplified' and '??').


      ---------- BEGIN SOURCE ----------
      import java.util.Locale;

      public class MyJVMTest {
          public static void main(String[] args) throws Exception {
              Locale zh_Hans_CN = Locale.forLanguageTag("zh-Hans-CN");
              System.out.println(zh_Hans_CN.getDisplayScript(zh_Hans_CN));
          }
      }
      ---------- END SOURCE ----------

      FREQUENCY : always


            naoto Naoto Sato
            webbuggrp Webbug Group
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: