"?" signs are printed instead of "+-" and other non-ASCII symbols in IDEA console on Windows.
Utils.guessConsoleEncoding() returns Cp866 extracted by a call to Console.encoding(). However no system console is used at all when JMH is run under IDEA (and probably other IDEs). When System.console() is null, that is, an application is not attached to a console, the actual charset of standard output should be extracted from System.out, not from System.console().
The problem appeared after a fix toCODETOOLS-7901217.
The suggested patch is attached.
Utils.guessConsoleEncoding() returns Cp866 extracted by a call to Console.encoding(). However no system console is used at all when JMH is run under IDEA (and probably other IDEs). When System.console() is null, that is, an application is not attached to a console, the actual charset of standard output should be extracted from System.out, not from System.console().
The problem appeared after a fix to
The suggested patch is attached.
- relates to
-
CODETOOLS-7902695 JMH should not try to access inaccessible fields
-
- Closed
-