-
Bug
-
Resolution: Fixed
-
P2
-
1.0, 1.1
-
1.1.1
-
generic, x86
-
generic, windows_nt
-
Not verified
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.
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.
- duplicates
-
JDK-4037139 String#getBytes("JIS") returns incorrect result
- Closed