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

java doesn't run when environment variable LC_ALL set to ru_RU.cp1251

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Duplicate
    • Icon: P4 P4
    • None
    • 1.4.0
    • hotspot
    • x86
    • linux



      Name: rmT116609 Date: 04/08/2002


      DESCRIPTION OF THE PROBLEM :

      In profile I set export LC_ALL=ru_RU.cp1251

      When I run java I get the following error message:

      Error occured during initialization of VM
      java.lang.NullPointerException

      LC_ALL=ru_RU.koi8r works fine
      IBM JDK 1.3.0 works fine too
      ru_RU.cp1251 locale exists
      and was generated:
      localedef -c -i ru_RU -f CP1251 ru_RU.CP1251

      locale -a | grep ru
      ru_RU
      ru_RU.cp1251
      ru_RU.koi8r
      russian
      ru_UA


      FULL OPERATING SYSTEM VERSION : Linux Slakware 8.0
      kernel: 2.4.13
      glibc:2.2.3

      Also, reproducible on Redhat 7.1 using JDK1.4.0.

      The problem is not reproducible on Redhat 7.1 using Sun JDK1.3.1_03.

      EXTRA RELEVANT SYSTEM CONFIGURATION :
      XFree:4.1.0
      Qt:2.3.1
      KDE:2.2.2


      STEPS TO FOLLOW TO REPRODUCE THE PROBLEM :
      1.Ensure ru_RU.cp1251 exists in your system

      2.Set $LC_ALL env variable ru_RU.cp1251
      write in /etc/profile
      export LC_ALL=ru_RU.cp1251
      export LANG=ru_RU.cp1251

      3.relogin
      4.start java


      EXPECTED VERSUS ACTUAL BEHAVIOR :
      java must work but error occured

      Error occured during initialization of VM
      java.lang.NullPointerException

      This bug can be reproduced always.

      (Review ID: 144299)
      ======================================================================

            Unassigned Unassigned
            rmandalasunw Ranjith Mandala (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: