-
Bug
-
Resolution: Duplicate
-
P3
-
None
-
1.1
-
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 - ###@###.###
======================================================================
- duplicates
-
JDK-4070242 CharToByte conversion fails for the encoding of Big5
-
- Closed
-