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

different behavior in iso-2022-jp encoding between jdk131/140/141 and jdk142/5/6/7

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Won't Fix
    • Icon: P3 P3
    • None
    • 1.4.2
    • core-libs

      When a CU tries to upgrade JDK131 to JDK5,
      the mail message in jdk5 is different from in 131.
      Javamail does not seem to output an escape sequence in JDK5.

      With further investigation, the mail message began to change 1.4.2.
      The same problem occurs in 5ux, 6ux and 7b115 as well.


      CONFIGURATION:
      OS :WindowsVista business (SP2, Japanese)
      JDK : 1.4.2_XX/5ux/6ux/7b115

      REPRODUCE:
      1. Compile the attached java program, m.java
      2. Invoke "java m"
         (.bat file is attached to invoke the command.)

      RESULT:
      Some portion of log are extracted.

      C:\Users\licensees\javamail-2nd>java\jdk1.3.1_21\bin\java -showversion m
      java version "1.3.1_21"
      Java(TM) 2 Runtime Environment, Standard Edition (build 1.3.1_21-b02)
      Java HotSpot(TM) Client VM (build 1.3.1_21-b02, mixed mode)
      -------------------------------------------------------
      JDK/JRE : Java Runtime Environment: 1.3.1_21
      JavaMail: null: 1.3.3_01
      JAF : null: 1.0.2
      -------------------------------------------------------
      ........
      0090: 6E 73 66 65 72 2D 45 6E 63 6F 64 69 6E 67 3A 20 nsfer-Encoding:
      00A0: 37 62 69 74 0D 0A 0D 0A 1B 24 42 3A 47 38 65 24 7bit.....$B:G8e$
      00B0: 2C 41 34 33 51 4A 38 3B 7A 24 47 3D 2A 24 6F 24 ,A43QJ8;z$G=*$o$
      00C0: 6B 3E 6C 39 67 1B 28 42 k>l9g.(B

      C:\Users\licensees\javamail-2nd>java\jdk1.4.0_04\bin\java -showversion m
      java version "1.4.0_04"
      Java(TM) 2 Runtime Environment, Standard Edition (build 1.4.0_04-b04)
      Java HotSpot(TM) Client VM (build 1.4.0_04-b04, mixed mode)
      -------------------------------------------------------
      JDK/JRE : Java Runtime Environment: 1.4.0_04
      JavaMail: javax.mail: 1.4.3
      JAF : null: 1.1
      -------------------------------------------------------
      .......
      0090: 61 6E 73 66 65 72 2D 45 6E 63 6F 64 69 6E 67 3A ansfer-Encoding:
      00A0: 20 37 62 69 74 0D 0A 0D 0A 1B 24 42 3A 47 38 65 7bit.....$B:G8e
      00B0: 24 2C 41 34 33 51 4A 38 3B 7A 24 47 3D 2A 24 6F $,A43QJ8;z$G=*$o
      00C0: 24 6B 3E 6C 39 67 1B 28 42 $k>l9g.(B


      C:\Users\licensees\javamail-2nd>java\jdk1.4.1_07\bin\java -showversion m
      java version "1.4.1_07"
      Java(TM) 2 Runtime Environment, Standard Edition (build 1.4.1_07-b02)
      Java HotSpot(TM) Client VM (build 1.4.1_07-b02, mixed mode)
      -------------------------------------------------------
      JDK/JRE : Java Runtime Environment: 1.4.1_07
      JavaMail: javax.mail: 1.4.3
      JAF : null: 1.1
      -------------------------------------------------------
      .......
      0090: 61 6E 73 66 65 72 2D 45 6E 63 6F 64 69 6E 67 3A ansfer-Encoding:
      00A0: 20 37 62 69 74 0D 0A 0D 0A 1B 24 42 3A 47 38 65 7bit.....$B:G8e
      00B0: 24 2C 41 34 33 51 4A 38 3B 7A 24 47 3D 2A 24 6F $,A43QJ8;z$G=*$o
      00C0: 24 6B 3E 6C 39 67 1B 28 42 $k>l9g.(B


      C:\Users\licensees\javamail-2nd>java\jdk1.4.2_27\bin\java -showversion m
      java version "1.4.2_27-ea"
      Java(TM) 2 Runtime Environment, Standard Edition (build 1.4.2_27-ea-b02)
      Java HotSpot(TM) Client VM (build 1.4.2_27-ea-b02, mixed mode)
      -------------------------------------------------------
      JDK/JRE : Java Runtime Environment: 1.4.2_27-ea
      JavaMail: javax.mail: 1.4.3
      JAF : null: 1.1
      -------------------------------------------------------
      .......
      0090: 72 61 6E 73 66 65 72 2D 45 6E 63 6F 64 69 6E 67 ransfer-Encoding
      00A0: 3A 20 37 62 69 74 0D 0A 0D 0A 1B 24 42 3A 47 38 : 7bit.....$B:G8
      00B0: 65 24 2C 41 34 33 51 4A 38 3B 7A 24 47 3D 2A 24 e$,A43QJ8;z$G=*$
      00C0: 6F 24 6B 3E 6C 39 67 o$k>l9g


      C:\Users\licensees\javamail-2nd>java\jdk1.5.0_25\bin\java -showversion m
      java version "1.5.0_25"
      Java(TM) Platform, Standard Edition for Business (build 1.5.0_25-b03)
      Java HotSpot(TM) Client VM (build 1.5.0_25-b03, mixed mode)
      -------------------------------------------------------
      JDK/JRE : Java Runtime Environment: 1.5.0_25
      JavaMail: javax.mail: 1.4.3
      JAF : null: 1.1
      -------------------------------------------------------
      ........
      0090: 72 61 6E 73 66 65 72 2D 45 6E 63 6F 64 69 6E 67 ransfer-Encoding
      00A0: 3A 20 37 62 69 74 0D 0A 0D 0A 1B 24 42 3A 47 38 : 7bit.....$B:G8
      00B0: 65 24 2C 41 34 33 51 4A 38 3B 7A 24 47 3D 2A 24 e$,A43QJ8;z$G=*$
      00C0: 6F 24 6B 3E 6C 39 67 o$k>l9g


      C:\Users\licensees\javamail-2nd>set CLASSPATH=jars\javamail-1.4.3\mail.jar;.

      C:\Users\licensees\javamail-2nd>java\jdk6_21\bin\java -showversion m
      java version "1.6.0_21"
      Java(TM) SE Runtime Environment (build 1.6.0_21-b07)
      Java HotSpot(TM) Client VM (build 17.0-b17, mixed mode)
      -------------------------------------------------------
      JDK/JRE : Java Runtime Environment: 1.6.0_21
      JavaMail: javax.mail: 1.4.3
      JAF : Java Runtime Environment: 1.6.0_21
      -------------------------------------------------------
      ......
      0090: 61 6E 73 66 65 72 2D 45 6E 63 6F 64 69 6E 67 3A ansfer-Encoding:
      00A0: 20 37 62 69 74 0D 0A 0D 0A 1B 24 42 3A 47 38 65 7bit.....$B:G8e
      00B0: 24 2C 41 34 33 51 4A 38 3B 7A 24 47 3D 2A 24 6F $,A43QJ8;z$G=*$o
      00C0: 24 6B 3E 6C 39 67 $k>l9g


      C:\Users\licensees\javamail-2nd>set CLASSPATH=jars\javamail-1.4.3\mail.jar;.

      C:\Users\licensees\javamail-2nd>java\jdk7b115\bin\java -showversion m
      java version "1.7.0-ea"
      Java(TM) SE Runtime Environment (build 1.7.0-ea-b115)
      Java HotSpot(TM) Client VM (build 20.0-b02, mixed mode)

      -------------------------------------------------------
      JDK/JRE : Java Runtime Environment: 1.7.0-ea
      JavaMail: javax.mail: 1.4.3
      JAF : Java Runtime Environment: 1.7.0-ea
      -------------------------------------------------------
      .........
      0090: 72 61 6E 73 66 65 72 2D 45 6E 63 6F 64 69 6E 67 ransfer-Encoding
      00A0: 3A 20 37 62 69 74 0D 0A 0D 0A 1B 24 42 3A 47 38 : 7bit.....$B:G8
      00B0: 65 24 2C 41 34 33 51 4A 38 3B 7A 24 47 3D 2A 24 e$,A43QJ8;z$G=*$
      00C0: 6F 24 6B 3E 6C 39 67 o$k>l9g


      In jdk1.3.1,1.4.0 and 1.4.1, Shift-OUT( 1B 28 42 ) in ISO-2022-JP(JIS) is output at the end
      of mail message.
      However, in jdk1.4.2, 5,6 and 7, Shift-OUT( 1B 28 42 ) is not output.

      When Shift-OUT is not output, Japanese data becomes incorrect.
      Dev engineer's help is needed to make progress on this bug. Dev engineer has been contacted for a while. Since he being very busy with JSR 310 work, he is unable to devote time to thi sissue. He will be looking into this very shortly.

            robm Robert Mckenna
            tbaba Tadayuki Baba (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: