forked from phoedos/pmd
Console encoding only when interactive
This commit is contained in:
pyxide
committed by
Juan Martín Sotuyo Dodero
parent
d7c503bee4
commit
43a38d3144
@ -78,7 +78,6 @@ public class Formatter {
|
||||
if (toConsole) {
|
||||
s = getConsoleEncoding();
|
||||
if (null == s) {
|
||||
// highly unlikely.
|
||||
s = System.getProperty("file.encoding");
|
||||
}
|
||||
}
|
||||
@ -215,8 +214,9 @@ public class Formatter {
|
||||
} catch (IllegalAccessException e) {
|
||||
// fall-through
|
||||
}
|
||||
return getNativeConsoleEncoding();
|
||||
}
|
||||
return getNativeConsoleEncoding();
|
||||
return null;
|
||||
}
|
||||
|
||||
private static String getNativeConsoleEncoding() {
|
||||
|
Reference in New Issue
Block a user