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

KSC5601 to Unicode converter often discard some coverted Unicode characters

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Duplicate
    • Icon: P3 P3
    • None
    • 1.1
    • core-libs
    • sparc
    • solaris_2.5.1



      Name: mc57594 Date: 02/26/97


      % cat FileCharStreamTest.java
      import java.io.*;
      class FileCharStreamTest
      { public static void main( String[] args ) throws IOException
          { Reader in = new FileReader(args[0]);
              Writer out = new FileWriter(args[1]);
              int count = 0;
              for(int ch; (ch = in.read()) != -1;)
              { ++count; out.write(ch);
              }
              System.err.println(count + " chars copied.");
              out.close();
          }
      }
      % uname -a
      SunOS catitan 5.4 generic sun4m sparc
      % echo $LANG
      ko
      % cat test2.dat
      abc
      def
      % java FileCharStreamTest test2.dat test.out
      4 chars copied.
      % cat test.out
      acdf%
      company - Korea Advanced Institute of Science and Technology (KAIST) , email - ###@###.###
      ======================================================================

            ssenthilsunw Shanmugam Senthil (Inactive)
            mchamnessunw Mark Chamness (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: