OPERATING SYSTEM(S)
-------------------
Testcase for non-English Windows Vista/2008.
May occur on earlier Windows releases as well (with a suitable testcase).
FULL JDK VERSION(S)
-------------------
All Java 6 releases.
DESCRIPTION:
------------
Only ASCII characters are getting stored and printed by Java 6 for an error text message returned by the Windows 2008 operating system even though double-byte language systems are being used.
Steps to reproduce:
------------------
1. Login using a regular Administrator group user account (but not the
built-in Administrator account).
2. Run the GarbledText Java program to hit the expected Windows 740
error.
3. Note the missing characters in the error message.
============================================================
import java.io.*;
class GarbledText {
public static void main (String args[]) {
try {
Process process = Runtime.getRuntime().exec("mmc.exe");
} catch (Exception e) {
System.err.println(e);
System.err.println("\n2");
System.err.println(e.getMessage());
System.err.println("\n3");
System.err.println(e.getLocalizedMessage());
System.err.println("\n4");
System.err.println(e.getCause());
System.err.println("\n5");
e.printStackTrace();
}
}
}
============================================================
Observed result (on a Polish system):
740: ??dana operacja wymaga podniesienia uprawni
Expected result: Characters should be displayed correctly.
This issue seems to share some symptoms with the Unix CR 6600199. It may or may not be related to that issue.
-------------------
Testcase for non-English Windows Vista/2008.
May occur on earlier Windows releases as well (with a suitable testcase).
FULL JDK VERSION(S)
-------------------
All Java 6 releases.
DESCRIPTION:
------------
Only ASCII characters are getting stored and printed by Java 6 for an error text message returned by the Windows 2008 operating system even though double-byte language systems are being used.
Steps to reproduce:
------------------
1. Login using a regular Administrator group user account (but not the
built-in Administrator account).
2. Run the GarbledText Java program to hit the expected Windows 740
error.
3. Note the missing characters in the error message.
============================================================
import java.io.*;
class GarbledText {
public static void main (String args[]) {
try {
Process process = Runtime.getRuntime().exec("mmc.exe");
} catch (Exception e) {
System.err.println(e);
System.err.println("\n2");
System.err.println(e.getMessage());
System.err.println("\n3");
System.err.println(e.getLocalizedMessage());
System.err.println("\n4");
System.err.println(e.getCause());
System.err.println("\n5");
e.printStackTrace();
}
}
}
============================================================
Observed result (on a Polish system):
740: ??dana operacja wymaga podniesienia uprawni
Expected result: Characters should be displayed correctly.
This issue seems to share some symptoms with the Unix CR 6600199. It may or may not be related to that issue.
- is blocked by
-
JDK-8011105 Locale Issue in the Native Function GetLastErrorString()
- Resolved
- relates to
-
JDK-6600199 (process) Decode system error messages using platform encoding (unix)
- Closed