pdfbox-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From til...@apache.org
Subject svn commit: r1686562 - /pdfbox/trunk/xmpbox/src/test/java/org/apache/xmpbox/TestValidatePermitedMetadata.java
Date Sat, 20 Jun 2015 11:24:41 GMT
Author: tilman
Date: Sat Jun 20 11:24:41 2015
New Revision: 1686562

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

Modified:
    pdfbox/trunk/xmpbox/src/test/java/org/apache/xmpbox/TestValidatePermitedMetadata.java

Modified: pdfbox/trunk/xmpbox/src/test/java/org/apache/xmpbox/TestValidatePermitedMetadata.java
URL: http://svn.apache.org/viewvc/pdfbox/trunk/xmpbox/src/test/java/org/apache/xmpbox/TestValidatePermitedMetadata.java?rev=1686562&r1=1686561&r2=1686562&view=diff
==============================================================================
--- pdfbox/trunk/xmpbox/src/test/java/org/apache/xmpbox/TestValidatePermitedMetadata.java
(original)
+++ pdfbox/trunk/xmpbox/src/test/java/org/apache/xmpbox/TestValidatePermitedMetadata.java
Sat Jun 20 11:24:41 2015
@@ -50,7 +50,7 @@ public class TestValidatePermitedMetadat
     {
         List<Object[]> params = new ArrayList<Object[]>();
         InputStream is =  TestValidatePermitedMetadata.class.getResourceAsStream("/permited_metadata.txt");
-        BufferedReader reader = new BufferedReader(new InputStreamReader(is));
+        BufferedReader reader = new BufferedReader(new InputStreamReader(is, "ISO-8859-1"));
         String line = reader.readLine();
         while (line!=null)
         {



Mime
View raw message