-
Bug
-
Resolution: Fixed
-
P4
-
11, 14, 15
-
Windows 10 Japanese
Windows Server 2016 Japanese, Korean
-
b17
-
x86_64
-
windows_10
Issue | Fix Version | Assignee | Priority | Status | Resolution | Resolved In Build |
---|---|---|---|---|---|---|
JDK-8247385 | 13.0.4 | Toshio Nakamura | P4 | Resolved | Fixed | b05 |
JDK-8250619 | 11.0.10-oracle | Toshio Nakamura | P4 | Resolved | Fixed | b01 |
JDK-8244237 | 11.0.8 | Toshio Nakamura | P4 | Resolved | Fixed | b02 |
FULL PRODUCT VERSION :
openjdk version "14-ea" 2020-03-17
OpenJDK Runtime Environment (build 14-ea+17-721)
OpenJDK 64-Bit Server VM (build 14-ea+17-721, mixed mode, sharing)
ADDITIONAL OS VERSION INFORMATION :
Windows 10 Japanese
A DESCRIPTION OF THE PROBLEM :
ProcessHandle.Info command shows question mark or garbled characters if the command is in non-English.
STEPS TO FOLLOW TO REPRODUCE THE PROBLEM :
Execute the attached sample program in Japanese Windows.
EXPECTED VERSUS ACTUAL BEHAVIOR :
Expected
C:\Temp\(Japanese Hiragana A x 3).exe
Actual
C:\Temp\????
REPRODUCIBILITY :
This bug can be reproduced always.
---------- BEGIN SOURCE ----------
import java.io.*;
import java.nio.*;
import java.nio.file.*;
import java.util.*;
public class ProcessName{
public static void main(String[] args) {
try{
// Create Japanese named program for test
String test = "\u3042\u3042\u3042.exe"; // Japanese Hiragana AAA
String systemRoot = System.getenv("SystemRoot");
Path ping = Paths.get(systemRoot).resolve("system32").resolve("ping.exe");
Path target = Paths.get(test);
Files.copy(ping, target, StandardCopyOption.REPLACE_EXISTING);
Scanner keyboard = new Scanner(System.in);
System.out.print("Pree enter key:");
String input = keyboard.nextLine();
String[] cmd={test, "localhost"};
ProcessBuilder pb = new ProcessBuilder().command(cmd);
Process p = pb.start();
ProcessHandle.Info info = p.info();
System.out.println(info.command().get());
}catch(IOException e){
e.printStackTrace();
}
}
}
---------- END SOURCE ----------
openjdk version "14-ea" 2020-03-17
OpenJDK Runtime Environment (build 14-ea+17-721)
OpenJDK 64-Bit Server VM (build 14-ea+17-721, mixed mode, sharing)
ADDITIONAL OS VERSION INFORMATION :
Windows 10 Japanese
A DESCRIPTION OF THE PROBLEM :
ProcessHandle.Info command shows question mark or garbled characters if the command is in non-English.
STEPS TO FOLLOW TO REPRODUCE THE PROBLEM :
Execute the attached sample program in Japanese Windows.
EXPECTED VERSUS ACTUAL BEHAVIOR :
Expected
C:\Temp\(Japanese Hiragana A x 3).exe
Actual
C:\Temp\????
REPRODUCIBILITY :
This bug can be reproduced always.
---------- BEGIN SOURCE ----------
import java.io.*;
import java.nio.*;
import java.nio.file.*;
import java.util.*;
public class ProcessName{
public static void main(String[] args) {
try{
// Create Japanese named program for test
String test = "\u3042\u3042\u3042.exe"; // Japanese Hiragana AAA
String systemRoot = System.getenv("SystemRoot");
Path ping = Paths.get(systemRoot).resolve("system32").resolve("ping.exe");
Path target = Paths.get(test);
Files.copy(ping, target, StandardCopyOption.REPLACE_EXISTING);
Scanner keyboard = new Scanner(System.in);
System.out.print("Pree enter key:");
String input = keyboard.nextLine();
String[] cmd={test, "localhost"};
ProcessBuilder pb = new ProcessBuilder().command(cmd);
Process p = pb.start();
ProcessHandle.Info info = p.info();
System.out.println(info.command().get());
}catch(IOException e){
e.printStackTrace();
}
}
}
---------- END SOURCE ----------
- backported by
-
JDK-8244237 ProcessHandle.Info command with non-English shows question marks
-
- Resolved
-
-
JDK-8247385 ProcessHandle.Info command with non-English shows question marks
-
- Resolved
-
-
JDK-8250619 ProcessHandle.Info command with non-English shows question marks
-
- Resolved
-