pdfbox-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From til...@apache.org
Subject svn commit: r1600087 - /pdfbox/branches/1.8/fontbox/src/main/java/org/apache/fontbox/cff/CFFParser.java
Date Wed, 04 Jun 2014 10:13:04 GMT
Author: tilman
Date: Wed Jun  4 10:13:03 2014
New Revision: 1600087

URL: http://svn.apache.org/r1600087
Log:
PDFBOX-2109: use correct encoding for String constructor, as suggested by Petr Slaby

Modified:
    pdfbox/branches/1.8/fontbox/src/main/java/org/apache/fontbox/cff/CFFParser.java

Modified: pdfbox/branches/1.8/fontbox/src/main/java/org/apache/fontbox/cff/CFFParser.java
URL: http://svn.apache.org/viewvc/pdfbox/branches/1.8/fontbox/src/main/java/org/apache/fontbox/cff/CFFParser.java?rev=1600087&r1=1600086&r2=1600087&view=diff
==============================================================================
--- pdfbox/branches/1.8/fontbox/src/main/java/org/apache/fontbox/cff/CFFParser.java (original)
+++ pdfbox/branches/1.8/fontbox/src/main/java/org/apache/fontbox/cff/CFFParser.java Wed Jun
 4 10:13:03 2014
@@ -127,7 +127,7 @@ public class CFFParser
     private static String readTagName(CFFDataInput input) throws IOException
     {
         byte[] b = input.readBytes(4);
-        return new String(b);
+        return new String(b, "ISO-8859-1");
     }
 
     private static long readLong(CFFDataInput input) throws IOException



Mime
View raw message