From 672c0f9bf3adc9847d0a1b5f881c028604000f7b Mon Sep 17 00:00:00 2001 From: Guillaume Nodet Date: Sun, 25 Oct 2020 08:44:05 +0100 Subject: [PATCH] Forgot one call to new PrintStream --- jansi/src/main/java/org/fusesource/jansi/AnsiConsole.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/jansi/src/main/java/org/fusesource/jansi/AnsiConsole.java b/jansi/src/main/java/org/fusesource/jansi/AnsiConsole.java index e1baf826..8e8bc8c1 100644 --- a/jansi/src/main/java/org/fusesource/jansi/AnsiConsole.java +++ b/jansi/src/main/java/org/fusesource/jansi/AnsiConsole.java @@ -127,7 +127,7 @@ private static PrintStream ansiSystem(boolean stdout) { // the ansi escapes. if (getBoolean(JANSI_STRIP)) { jansiOutputType = JansiOutputType.STRIP_ANSI; - return new PrintStream(new AnsiNoSyncOutputStream(out, new AnsiProcessor(out), enc), true); + return newPrintStream(new AnsiNoSyncOutputStream(out, new AnsiProcessor(out), enc), enc); } if (IS_WINDOWS) {