On JDK19 with Linux ja_JP.eucjp locale, System.getenv() returns unexpected value if environment variable has Japanese EUC characters. It seems this issue happens because of JEP 400. Arguments for ProcessBuilder have same kind of issue.
------------- Commit messages: - 8285517: System.getenv() returns unexpected value if environment variable has non ASCII character Changes: https://git.openjdk.java.net/jdk/pull/8378/files Webrev: https://webrevs.openjdk.java.net/?repo=jdk&pr=8378&range=00 Issue: https://bugs.openjdk.java.net/browse/JDK-8285517 Stats: 188 lines in 4 files changed: 180 ins; 0 del; 8 mod Patch: https://git.openjdk.java.net/jdk/pull/8378.diff Fetch: git fetch https://git.openjdk.java.net/jdk pull/8378/head:pull/8378 PR: https://git.openjdk.java.net/jdk/pull/8378