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

(cs) JDK9 Build failure on Hindi locale

XMLWordPrintable

    • b129
    • linux

      JDK9 build fails if Hindi locale is specified.
      (I used LANG=hi_IN.utf8 on Linux.)

      The root cause is non-ASCII numeric characters are used in generated source code(support/gensrc/java.base/sun/nio/cs/). In this case, the Devanagari script:
              b2cMap[३२] = UNMAPPABLE_DECODING;
              b2cMap[९१] = UNMAPPABLE_DECODING;
              b2cMap[९२] = UNMAPPABLE_DECODING;
              b2cMap[९३] = UNMAPPABLE_DECODING;
              b2cMap[९४] = UNMAPPABLE_DECODING;


      =========================================================
      Compiling 11 properties into resource bundles for java.base
      Creating support/jce/policy/unlimited/US_export_policy.jar
      Compiling 6 properties into resource bundles for java.base
      Creating support/jce/policy/limited/local_policy.jar
      Creating support/jce/policy/unlimited/local_policy.jar
      Compiling 11 properties into resource bundles for java.logging
      Compiling 11 properties into resource bundles for java.management
      Compiling 2878 files for java.base
      Compiling 100 properties into resource bundles for java.desktop
      /export/disk1/kyuka/work/jdk9-Dev-test/build/linux-x86_64-normal-server-release/support/gensrc/java.base/sun/nio/cs/IBM874.java:102: error: unmappable character (0xE0) for encoding ascii
              b2cMap[������] = UNMAPPABLE_DECODING;
                     ^
      /export/disk1/kyuka/work/jdk9-Dev-test/build/linux-x86_64-normal-server-release/support/gensrc/java.base/sun/nio/cs/IBM874.java:102: error: unmappable character (0xA5) for encoding ascii
              b2cMap[������] = UNMAPPABLE_DECODING;
                      ^
      /export/disk1/kyuka/work/jdk9-Dev-test/build/linux-x86_64-normal-server-release/support/gensrc/java.base/sun/nio/cs/IBM874.java:102: error: unmappable character (0xA9) for encoding ascii
              b2cMap[������] = UNMAPPABLE_DECODING;
                       ^
      /export/disk1/kyuka/work/jdk9-Dev-test/build/linux-x86_64-normal-server-release/support/gensrc/java.base/sun/nio/cs/IBM874.java:102: error: unmappable character (0xE0) for encoding ascii
              b2cMap[������] = UNMAPPABLE_DECODING;
                        ^
      ...
                                      ^
      /export/disk1/kyuka/work/jdk9-Dev-test/build/linux-x86_64-normal-server-release/support/gensrc/java.base/sun/nio/cs/JIS_X_0201.java:103: error: not a statement
              c2bNR[���] = 0x5c; c2bNR[���] = 0xa5;
                   ^
      /export/disk1/kyuka/work/jdk9-Dev-test/build/linux-x86_64-normal-server-release/support/gensrc/java.base/sun/nio/cs/JIS_X_0201.java:103: error: not a statement
              c2bNR[���] = 0x5c; c2bNR[���] = 0xa5;
                                      ^
      59 errors
      make[3]: *** [/export/disk1/kyuka/work/jdk9-Dev-test/build/linux-x86_64-normal-server-release/jdk/modules/java.base/_the.java.base_batch] Error 1
      make[2]: *** [java.base-java] Error 1

            naoto Naoto Sato
            peytoia Yuka Kamiya (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

              Created:
              Updated:
              Resolved: