Compatibility fix for GCJ (GNU Classpath): Using "UTF-16BE" instead of "UnicodeBigUnmarked" encoding.
Submitted by: Jeroen Meijer <jmeijer.at.notice.nu>
git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@426465
13f79535-47bb-0310-9956-
ffa450edef68
final byte[] uniBytes;
try {
final char[] a = {c};
- uniBytes = new String(a).getBytes("UnicodeBigUnmarked");
+ uniBytes = new String(a).getBytes("UTF-16BE");
} catch (java.io.UnsupportedEncodingException uee) {
throw new CascadingRuntimeException("Incompatible VM", uee);
}
<changes>
<release version="FOP Trunk">
+ <action context="Code" dev="JM" type="fix" fixes-bug="40106" due-to="Jeroen Meijer">
+ Compatibility fix for GCJ (GNU Classpath): Using "UTF-16BE" instead of "UnicodeBigUnmarked"
+ encoding.
+ </action>
<action context="Code" dev="JM" type="fix" fixes-bug="40062" due-to="Gilles Beaugeais">
Fixed handling for CCITT Group 4 TIFF images with fill order 2.
</action>