pdfbox-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From til...@apache.org
Subject svn commit: r1686563 - /pdfbox/branches/1.8/pdfbox/src/main/java/org/apache/pdfbox/encoding/Encoding.java
Date Sat, 20 Jun 2015 11:25:02 GMT
Author: tilman
Date: Sat Jun 20 11:25:01 2015
New Revision: 1686563

URL: http://svn.apache.org/r1686563
Log:
PDFBOX-2837: avoid input being read as EBCDIC in non ASCII systems

Modified:
    pdfbox/branches/1.8/pdfbox/src/main/java/org/apache/pdfbox/encoding/Encoding.java

Modified: pdfbox/branches/1.8/pdfbox/src/main/java/org/apache/pdfbox/encoding/Encoding.java
URL: http://svn.apache.org/viewvc/pdfbox/branches/1.8/pdfbox/src/main/java/org/apache/pdfbox/encoding/Encoding.java?rev=1686563&r1=1686562&r2=1686563&view=diff
==============================================================================
--- pdfbox/branches/1.8/pdfbox/src/main/java/org/apache/pdfbox/encoding/Encoding.java (original)
+++ pdfbox/branches/1.8/pdfbox/src/main/java/org/apache/pdfbox/encoding/Encoding.java Sat
Jun 20 11:25:01 2015
@@ -121,7 +121,7 @@ public abstract class Encoding implement
                 throw new MissingResourceException("Glyphlist not found: " + location,
                         Encoding.class.getName(), location);
             }
-            glyphStream = new BufferedReader( new InputStreamReader( resource ) );
+            glyphStream = new BufferedReader( new InputStreamReader( resource, "ISO-8859-1"
) );
             String line = null;
             while( (line = glyphStream.readLine()) != null )
             {



Mime
View raw message