RFR: 8065138 - Encodings.isRecognizedEnconding sometimes fails to recognize 'UTF8'

Daniel Fuchs daniel.fuchs at oracle.com
Wed Nov 19 11:17:01 UTC 2014


Hi,

Please find below a trivial fix for

8065138: Encodings.isRecognizedEnconding sometimes fails to
          recognize 'UTF8'
https://bugs.openjdk.java.net/browse/JDK-8065138

webrev: http://cr.openjdk.java.net/~dfuchs/webrev_8065138/webrev.00/

The root of the issue is with
jaxp/src/java.xml/share/classes/com/sun/org/apache/xml/internal/serializer/Encodings.properties
It contains a special character 'å' which confuses the build
system on Mavericks.
The Encodings.properties file ends up truncated in resources.jar - it
contains only one line (the line before the special character was
encountered).
The fix is to replace the special character 'å' by its unicode
representation \u00e5.

best regards,

-- daniel




More information about the core-libs-dev mailing list