mirror of
https://github.com/openjdk/jdk.git
synced 2026-02-25 09:40:10 +00:00
8266774: System property values for stdout/err on Windows UTF-8
Reviewed-by: bpb, alanb
This commit is contained in:
parent
25d99e5267
commit
c494efc5b5
@ -147,6 +147,8 @@ static char* getConsoleEncoding()
|
||||
cp = GetConsoleCP();
|
||||
if (cp >= 874 && cp <= 950)
|
||||
sprintf(buf, "ms%d", cp);
|
||||
else if (cp == 65001)
|
||||
sprintf(buf, "UTF-8");
|
||||
else
|
||||
sprintf(buf, "cp%d", cp);
|
||||
return buf;
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user