From 29fb962805513e4aeb7f21b8bfc090a4585fcd73 Mon Sep 17 00:00:00 2001 From: M66B Date: Sun, 22 Aug 2021 23:07:20 +0200 Subject: [PATCH] Remove fallback to system default charset solving https://github.com/eclipse-ee4j/mail/issues/467 --- .../java/javax/mail/internet/MimeUtility.java | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) diff --git a/app/src/main/java/javax/mail/internet/MimeUtility.java b/app/src/main/java/javax/mail/internet/MimeUtility.java index f4bae05a6c..4d12b77167 100644 --- a/app/src/main/java/javax/mail/internet/MimeUtility.java +++ b/app/src/main/java/javax/mail/internet/MimeUtility.java @@ -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"; }