-
Bug
-
Resolution: Not an Issue
-
P4
-
None
-
1.4.0
-
x86
-
windows_nt
Name: nt126004 Date: 02/11/2002
FULL PRODUCT VERSION :
java version "1.4.0-beta"
Java(TM) 2 Runtime Environment, Standard Edition (build 1.4.0-beta-b65)
Java HotSpot(TM) Client VM (build 1.4.0-beta-b65, mixed mode)
FULL OPERATING SYSTEM VERSION :
Windows NT Version 4.0
Sp 6
EXTRA RELEVANT SYSTEM CONFIGURATION :
My version of the OS is an english one, regional settings
set to russian
A DESCRIPTION OF THE PROBLEM :
The Big5 charset has support for all the cyrillic
characters. However when outputting the russian alphabet
to an OutputStreamWriter configured to write in Big5
part of the chars come out as ? -marks.
(I can not currently check if the other characters yeild
corrent Big5 cyrillic codes though)
EXPECTED VERSUS ACTUAL BEHAVIOR :
I expect no chars from the russian alphabet to be converted
to ? marks when writing in Big5. I expect all of them to
become 2-byte codes.
This bug can be reproduced always.
---------- BEGIN SOURCE ----------
import java.io.*;
public class C{
public static void main(String args[]){
try{
Writer w = new OutputStreamWriter( new FileOutputStream(
args[0] ), "Big5" );
/*the first three writes give only ?-marks*/
w.write("\u0410\u0411\u0412\u0413\n");
w.write("\u041d\u041e\n");
w.write("\u041f\u0420\u0421\u0422\n");
/*the rest give some 2-byte codes, this is what I expect to happen*/
w.write("\u0430\u0431\u0432\u0433\u0434\u0435\u0436\u0437\u0438
\u0439\u043a\u043b\u043c\u043d\u043e\u043f\u0440\u0441\u0442\u0443\u0444\u0445
\u0446\u0447\u0448\u0449\u044a\u044b\u044c\u044d\u044e\u044f\n");
w.write("\u0414\u0415\u0416\u0417\u0418\u0419\u041a\u041b\u041c\n");
w.write("\u0423\u0424\u0425\u0426\u0427\u0428\u0429
\u042a\u042b\u042c\u042d\u042e\u042f\n");
w.close();
}catch( Exception e ){
e.printStackTrace();
}
}
}
---------- END SOURCE ----------
(Review ID: 138974)
======================================================================
FULL PRODUCT VERSION :
java version "1.4.0-beta"
Java(TM) 2 Runtime Environment, Standard Edition (build 1.4.0-beta-b65)
Java HotSpot(TM) Client VM (build 1.4.0-beta-b65, mixed mode)
FULL OPERATING SYSTEM VERSION :
Windows NT Version 4.0
Sp 6
EXTRA RELEVANT SYSTEM CONFIGURATION :
My version of the OS is an english one, regional settings
set to russian
A DESCRIPTION OF THE PROBLEM :
The Big5 charset has support for all the cyrillic
characters. However when outputting the russian alphabet
to an OutputStreamWriter configured to write in Big5
part of the chars come out as ? -marks.
(I can not currently check if the other characters yeild
corrent Big5 cyrillic codes though)
EXPECTED VERSUS ACTUAL BEHAVIOR :
I expect no chars from the russian alphabet to be converted
to ? marks when writing in Big5. I expect all of them to
become 2-byte codes.
This bug can be reproduced always.
---------- BEGIN SOURCE ----------
import java.io.*;
public class C{
public static void main(String args[]){
try{
Writer w = new OutputStreamWriter( new FileOutputStream(
args[0] ), "Big5" );
/*the first three writes give only ?-marks*/
w.write("\u0410\u0411\u0412\u0413\n");
w.write("\u041d\u041e\n");
w.write("\u041f\u0420\u0421\u0422\n");
/*the rest give some 2-byte codes, this is what I expect to happen*/
w.write("\u0430\u0431\u0432\u0433\u0434\u0435\u0436\u0437\u0438
\u0439\u043a\u043b\u043c\u043d\u043e\u043f\u0440\u0441\u0442\u0443\u0444\u0445
\u0446\u0447\u0448\u0449\u044a\u044b\u044c\u044d\u044e\u044f\n");
w.write("\u0414\u0415\u0416\u0417\u0418\u0419\u041a\u041b\u041c\n");
w.write("\u0423\u0424\u0425\u0426\u0427\u0428\u0429
\u042a\u042b\u042c\u042d\u042e\u042f\n");
w.close();
}catch( Exception e ){
e.printStackTrace();
}
}
}
---------- END SOURCE ----------
(Review ID: 138974)
======================================================================