On 24/06/2019 13:56, Konstantin Kolinko wrote:
> пн, 24 июн. 2019 г. в 15:51, <ma...@apache.org>:
>>
>> This is an automated email from the ASF dual-hosted git repository.
>>
>> markt pushed a commit to branch 8.5.x
>> in repository https://gitbox.apache.org/repos/asf/tomcat.git
>>
>> commit 41db6c85dfb6f704e2911fb2e41a72e6944852ae
>> Author: Mark Thomas <ma...@apache.org>
>> AuthorDate: Mon Jun 24 10:09:55 2019 +0100
>>
>>     Remove mappings provided by the JVM
> 
> There are different JVM implementations out there. Are you sure of this 
> change?

As I can be. The mapping was created because older Sun JREs didn't
support "iso-2022-cn" (the first one I tested). Not because some vendors
hadn't implemented them.

The original file dates back over 12 years:

http://svn.apache.org/viewvc/geronimo/specs/trunk/geronimo-spec-javamail-1.4/src/main/java/javax/mail/internet/MimeUtility.java?annotate=421852&pathrev=421852

If you go back to Java 5 they are all known.

Java 1.4 only iso-2022-cn is unknown.

I'm having trouble testing with Java 1.3 (looks like a JRE install issue
- not unreasonable given its age)

Mark

> 
>> ---
>>  .../apache/tomcat/util/http/fileupload/util/mime/MimeUtility.java  | 7 
>> -------
>>  1 file changed, 7 deletions(-)
>>
>> diff --git 
>> a/java/org/apache/tomcat/util/http/fileupload/util/mime/MimeUtility.java 
>> b/java/org/apache/tomcat/util/http/fileupload/util/mime/MimeUtility.java
>> index b5b4cdd..a6200ca 100644
>> --- a/java/org/apache/tomcat/util/http/fileupload/util/mime/MimeUtility.java
>> +++ b/java/org/apache/tomcat/util/http/fileupload/util/mime/MimeUtility.java
>> @@ -68,15 +68,8 @@ public final class MimeUtility {
>>      private static final Map<String, String> MIME2JAVA = new HashMap<>();
>>
>>      static {
>> -        MIME2JAVA.put("iso-2022-cn", "ISO2022CN");
>> -        MIME2JAVA.put("iso-2022-kr", "ISO2022KR");
>> -        MIME2JAVA.put("utf-8", "UTF8");
>> -        MIME2JAVA.put("utf8", "UTF8");
>>          MIME2JAVA.put("ja_jp.iso2022-7", "ISO2022JP");
>>          MIME2JAVA.put("ja_jp.eucjp", "EUCJIS");
>> -        MIME2JAVA.put("euc-kr", "KSC5601");
>> -        MIME2JAVA.put("euckr", "KSC5601");
>> -        MIME2JAVA.put("us-ascii", "ISO-8859-1");
>>          MIME2JAVA.put("x-us-ascii", "ISO-8859-1");
>>      }
>>
>>
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: dev-unsubscr...@tomcat.apache.org
>> For additional commands, e-mail: dev-h...@tomcat.apache.org
>>
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: dev-unsubscr...@tomcat.apache.org
> For additional commands, e-mail: dev-h...@tomcat.apache.org
> 


---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscr...@tomcat.apache.org
For additional commands, e-mail: dev-h...@tomcat.apache.org

Reply via email to