-
Bug
-
Resolution: Fixed
-
P4
-
1.4.1
-
tiger
-
x86
-
linux
Name: rmT116609 Date: 10/07/2002
FULL PRODUCT VERSION :
java version "1.4.1"
Java(TM) 2 Runtime Environment, Standard Edition (build 1.4.1-b21)
Java HotSpot(TM) Client VM (build 1.4.1-b21, mixed mode)
Operating System: kernel 2.4.18 glibc 2.2.4-24
Windows 2000, Solaris 2.8
A DESCRIPTION OF THE PROBLEM :
When using OutputStreamWriter to generate text in the ISO-8859-7 (Greek) encoding, several characters that do exist in that encoding are instead output as a question mark; specifically
0x2018 LEFT SINGLE QUOTATION MARK
0x2019 RIGHT SINGLE QUOTATION MARK
STEPS TO FOLLOW TO REPRODUCE THE PROBLEM :
Run attached source code
EXPECTED VERSUS ACTUAL BEHAVIOR :
The attached source code should generate a file containing a left and a right single quotation mark in the ISO-8859-7 encoding. Instead it generates a file containing two question marks.
REPRODUCIBILITY :
This bug can be reproduced always.
---------- BEGIN SOURCE ----------
import java.io.*;
public class TestGreek {
public static void main(String[] args) throws IOException {
FileOutputStream fout = new FileOutputStream("greek.txt");
OutputStreamWriter out = new OutputStreamWriter(fout, "ISO-8859-7");
out.write(0x2018);
out.write(0x2019);
out.write("\r\n");
out.flush();
out.close();
}
}
---------- END SOURCE ----------
(Review ID: 165401)
======================================================================
FULL PRODUCT VERSION :
java version "1.4.1"
Java(TM) 2 Runtime Environment, Standard Edition (build 1.4.1-b21)
Java HotSpot(TM) Client VM (build 1.4.1-b21, mixed mode)
Operating System: kernel 2.4.18 glibc 2.2.4-24
Windows 2000, Solaris 2.8
A DESCRIPTION OF THE PROBLEM :
When using OutputStreamWriter to generate text in the ISO-8859-7 (Greek) encoding, several characters that do exist in that encoding are instead output as a question mark; specifically
0x2018 LEFT SINGLE QUOTATION MARK
0x2019 RIGHT SINGLE QUOTATION MARK
STEPS TO FOLLOW TO REPRODUCE THE PROBLEM :
Run attached source code
EXPECTED VERSUS ACTUAL BEHAVIOR :
The attached source code should generate a file containing a left and a right single quotation mark in the ISO-8859-7 encoding. Instead it generates a file containing two question marks.
REPRODUCIBILITY :
This bug can be reproduced always.
---------- BEGIN SOURCE ----------
import java.io.*;
public class TestGreek {
public static void main(String[] args) throws IOException {
FileOutputStream fout = new FileOutputStream("greek.txt");
OutputStreamWriter out = new OutputStreamWriter(fout, "ISO-8859-7");
out.write(0x2018);
out.write(0x2019);
out.write("\r\n");
out.flush();
out.close();
}
}
---------- END SOURCE ----------
(Review ID: 165401)
======================================================================