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

Cannot run classes when file.encoding=Cp037

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Not an Issue
    • Icon: P2 P2
    • None
    • 1.4.0
    • core-libs

      Since merlin build 46 it is not possible to run
      any Java class from the command line if you set
      the file.encoding property to an EBCDIC based encoding
      such as Cp037.

      eg. java -Dfile.encoding=Cp037 Test (where Test is any class)

      produces the following output:

      Exception in thread "main" ¥KKÕâ¢Ä
      Ƥ
        Åz@¤

      If you run the command as shown below you will get more
      intelligible output.

      java -Dfile.encoding=Cp037 Test 2>& 1 | native2ascii -encoding Cp037

      java.lang.NoClassDefFoundError is being thrown for the class Test.
       
      Note, this only occurs in the "C" locale.
      ///////////////////////////////////////////

      al.smith@eng 2001-07-11

      Name: as83306 Date: 05/09/2001

      Regression test java/net/URLConnection/rundefaultencodingtest.sh fails with Merlin build 63 on Linux 6.2, host seahund. This test has not previously passed. This appears to be a test bug by not regognizing the system it's being tested on.
      For test hardware config's, see http://sqesvr.eng/st3/jdk1.4/docs/Merlin-hw.html
       
       #Test Results (version 2)
      #Thu May 03 11:16:43 GMT+00:00 2001
      #checksum:223f5616dd6dba0d
      #-----testdescription-----
      $file=/.automount/sqesvr/root/export/st1/regression/merlin/jdk1.4Tests/tests/b63/java/net/URLConnection/rundefaultencodingtest.sh
      $root=/.automount/sqesvr/root/export/st1/regression/merlin/jdk1.4Tests/tests/b63
      keywords=bug4311523 shell
      run=USER_SPECIFIED shell/timeout=40 rundefaultencodingtest.sh\n
      source=rundefaultencodingtest.sh
      title=Test to see if the PrintStream created by the SMTP protocol handler has the ISO8859_1 encoding or the one specfied in the file.encoding system property

      #-----environment-----

      #-----testresult-----
      description=file:///.automount/sqesvr/root/export/st1/regression/merlin/jdk1.4Tests/tests/b63/java/net/URLConnection/rundefaultencodingtest.sh
      end=Thu May 03 11:16:43 GMT+00:00 2001
      environment=regtest
      execStatus=Failed. Execution failed: exit code 1
      javatestOS=Linux 2.2.14-6.1.1 (i386)
      javatestVersion=JT_2.1.3i
      script=com.sun.javatest.regtest.RegressionScript
      sections=script_messages shell
      start=Thu May 03 11:16:43 GMT+00:00 2001
      status=Failed. Execution failed: exit code 1
      test=java/net/URLConnection/rundefaultencodingtest.sh
      work=/export0/results/regression/merlin/b63/seahund.2.2.14-6.1.1-jth13-jdk14b63-05.03-09.14-ALL/java/net/URLConnection

      #section:script_messages
      ----------messages:(1/102)----------
      JDK under test: java full version "1.4.0-beta-b63" (/net/sqesvr/export/st1/jdk14-beta/b63/linux-i386)

      #section:shell
      ----------messages:(3/151)----------
      command: shell rundefaultencodingtest.sh
      reason: User specified action: run shell/timeout=40 rundefaultencodingtest.sh
      elapsed time (seconds): 0.058
      ----------System.out:(1/21)----------
      Unrecognized system!
      ----------System.err:(0/0)----------
      result: Failed. Execution failed: exit code 1

      test result: Failed. Execution failed: exit code 1

            ilittlesunw Ian Little (Inactive)
            michaelm Michael McMahon
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: