mirror of https://github.com/M66B/FairEmail.git
Remove fallback to system default charset solving
https://github.com/eclipse-ee4j/mail/issues/467
This commit is contained in:
parent
2946be2878
commit
29fb962805
|
@ -1293,15 +1293,15 @@ public class MimeUtility {
|
|||
"8859_1");
|
||||
} catch (SecurityException sex) {
|
||||
|
||||
class NullInputStream extends InputStream {
|
||||
@Override
|
||||
public int read() {
|
||||
return 0;
|
||||
}
|
||||
}
|
||||
InputStreamReader reader =
|
||||
new InputStreamReader(new NullInputStream());
|
||||
defaultJavaCharset = reader.getEncoding();
|
||||
//class NullInputStream extends InputStream {
|
||||
// @Override
|
||||
// public int read() {
|
||||
// return 0;
|
||||
// }
|
||||
//}
|
||||
//InputStreamReader reader =
|
||||
// new InputStreamReader(new NullInputStream());
|
||||
//defaultJavaCharset = reader.getEncoding();
|
||||
if (defaultJavaCharset == null)
|
||||
defaultJavaCharset = "8859_1";
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue