mirror of
https://github.com/openjdk/jdk.git
synced 2025-08-28 23:34:52 +02: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
1 changed files with 2 additions and 0 deletions
|
@ -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…
Add table
Add a link
Reference in a new issue