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

CharToByteJIS *ALWAYS* adds ESC-(-B at the end of file

    XMLWordPrintable

Details

    • 1.1.1
    • generic, x86
    • generic, windows_nt
    • Not verified

    Description

      It always add unnecessary escape code at the enf of line.

      import java.io.*;

      public class JISTest {
        public static void main(String args[]) {
          try {
              OutputStreamWriter osw = new OutputStreamWriter(System.out, "JIS");
              osw.write("test");
              osw.flush();
          } catch(Exception e)
          {}
        }
      }
      ~


      result:
      test^[(B

      ESC-(-B should not be added.

      Attachments

        Issue Links

          Activity

            People

              nishimur Naoyuki Ishimura (Inactive)
              sishidasunw Shoji Ishida (Inactive)
              Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:
                Imported:
                Indexed: