IDEA additional info:
Subsystem: com.intellij.openapi.diff.impl.patch.CharsetEP
<+>UTF-8
|
|
|
|
| 6 | 6 | import java.io.OutputStream; |
| 7 | 7 | import java.io.PrintWriter; |
| 8 | 8 | import java.io.StringWriter; |
| | 9 | import java.io.UnsupportedEncodingException; |
| | 10 | import java.nio.charset.StandardCharsets; |
| 9 | 11 | import java.text.MessageFormat; |
| 10 | 12 | import java.util.ArrayList; |
| 11 | 13 | import java.util.Arrays; |
| … |
… |
|
| 131 | 133 | LOGGER.setLevel(Level.ALL); |
| 132 | 134 | LOGGER.setUseParentHandlers(false); |
| 133 | 135 | |
| | 136 | //Default output encoding string on all systems |
| | 137 | String outputEncoding = StandardCharsets.UTF_8.toString(); |
| | 138 | |
| 134 | 139 | // for a more concise logging output via java.util.logging.SimpleFormatter |
| 135 | 140 | Utils.updateSystemProperty("java.util.logging.SimpleFormatter.format", "%1$tF %1$tT.%1$tL %4$s: %5$s%6$s%n"); |
| 136 | 141 | |
| 137 | 142 | ConsoleHandler stderr = new ReacquiringConsoleHandler(() -> System.err, null); |
| 138 | 143 | LOGGER.addHandler(stderr); |
| | 144 | |
| | 145 | try { |
| | 146 | stderr.setEncoding(outputEncoding); |
| | 147 | } catch (UnsupportedEncodingException e) { |
| | 148 | System.err.println("Unable to set output encoding: " + e.getMessage()); |
| | 149 | } |
| | 150 | |
| 139 | 151 | try { |
| 140 | 152 | stderr.setLevel(LEVEL_WARN); |
| 141 | 153 | } catch (SecurityException e) { |
| … |
… |
|
| 144 | 156 | |
| 145 | 157 | ConsoleHandler stdout = new ReacquiringConsoleHandler(() -> System.out, stderr); |
| 146 | 158 | LOGGER.addHandler(stdout); |
| | 159 | |
| | 160 | try { |
| | 161 | stdout.setEncoding(outputEncoding); |
| | 162 | } catch (UnsupportedEncodingException e) { |
| | 163 | System.err.println("Unable to set output encoding: " + e.getMessage()); |
| | 164 | } |
| | 165 | |
| 147 | 166 | try { |
| 148 | 167 | stdout.setLevel(Level.ALL); |
| 149 | 168 | } catch (SecurityException e) { |