File tree 3 files changed +10
-3
lines changed
java/org/fusesource/jansi
resources/org/fusesource/jansi
3 files changed +10
-3
lines changed Original file line number Diff line number Diff line change @@ -237,7 +237,10 @@ private static AnsiPrintStream ansiStream(boolean stdout) {
237
237
FileDescriptor descriptor = stdout ? FileDescriptor .out : FileDescriptor .err ;
238
238
final OutputStream out = new FastBufferedOutputStream (new FileOutputStream (descriptor ));
239
239
240
- String enc = System .getProperty (stdout ? "sun.stdout.encoding" : "sun.stderr.encoding" );
240
+ String enc = System .getProperty (stdout ? "stdout.encoding" : "stderr.encoding" );
241
+ if (enc == null ) {
242
+ enc = System .getProperty (stdout ? "sun.stdout.encoding" : "sun.stderr.encoding" );
243
+ }
241
244
242
245
final boolean isatty ;
243
246
boolean isAtty ;
Original file line number Diff line number Diff line change @@ -85,6 +85,10 @@ public static void main(String... args) throws IOException {
85
85
+ "os.version= " + System .getProperty ("os.version" ) + ", "
86
86
+ "os.arch= " + System .getProperty ("os.arch" ));
87
87
System .out .println ("file.encoding= " + System .getProperty ("file.encoding" ));
88
+ System .out .println ("sun.stdout.encoding= " + System .getProperty ("sun.stdout.encoding" ) + ", "
89
+ + "sun.stderr.encoding= " + System .getProperty ("sun.stderr.encoding" ));
90
+ System .out .println ("stdout.encoding= " + System .getProperty ("stdout.encoding" ) + ", " + "stderr.encoding= "
91
+ + System .getProperty ("stderr.encoding" ));
88
92
System .out .println ("java.version= " + System .getProperty ("java.version" ) + ", "
89
93
+ "java.vendor= " + System .getProperty ("java.vendor" ) + ","
90
94
+ " java.home= " + System .getProperty ("java.home" ));
Original file line number Diff line number Diff line change 1
- [?7h[255D[40m
2
- [0;1;33m [22C[32m┌──┐┌─────┐ ┌─────┐ ┌──────┬──┐
1
+ [?7h[255D
2
+ [0m [22C[32m┌──┐┌─────┐ ┌─────┐ ┌──────┬──┐
3
3
[22C│[37m██[32m├┘[37m█████[32m└┬┘[37m█████[32m└┬┘[37m██████[32m│[37m▐▌[32m│
4
4
[17C┌──┐ │[37m██[32m│[37m██▄▄▄██[32m│[37m██[32m┌─┐[37m██[32m│[37m██▄▄▄▄ [32m│[37m▄▄[32m│
5
5
[17C│[37m▒▒[32m└─┘[37m▒█[32m│[37m▒█[32m┌─┐[37m▒█[32m│[37m▒█[32m│ │[37m▒█[32m│ [37m▀▀▀▀▒█[32m│[37m▒█[32m│
You can’t perform that action at this time.
0 commit comments