]> source.dussan.org Git - xmlgraphics-fop.git/commitdiff
Bugzilla #40106:
authorJeremias Maerki <jeremias@apache.org>
Fri, 28 Jul 2006 10:04:23 +0000 (10:04 +0000)
committerJeremias Maerki <jeremias@apache.org>
Fri, 28 Jul 2006 10:04:23 +0000 (10:04 +0000)
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

src/java/org/apache/fop/pdf/PDFText.java
status.xml

index 16fccb97e485298d727c8f5e98560661af62ce3e..bcf628d0e5e06e94efc514a4dd377964475e8b37 100644 (file)
@@ -180,7 +180,7 @@ public class PDFText extends PDFObject {
         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);
         }
index 53ca9e6203caeb0eefacde06cdab1e4d2472208f..e254195633060d49d81856809c431b0fb5fdb44a 100644 (file)
 
   <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>