< prev index next >

src/java.base/windows/native/libjava/Console_md.c

Print this page

        

*** 55,64 **** --- 55,66 ---- { char buf[64]; int 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 JNU_NewStringPlatform(env, buf); }
< prev index next >