pdfbox-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From til...@apache.org
Subject svn commit: r1759321 - /pdfbox/branches/1.8/pdfbox/src/main/java/org/apache/pdfbox/pdfwriter/COSWriter.java
Date Mon, 05 Sep 2016 16:10:55 GMT
Author: tilman
Date: Mon Sep  5 16:10:55 2016
New Revision: 1759321

URL: http://svn.apache.org/viewvc?rev=1759321&view=rev
Log:
PDFBOX-3481: avoid arab digits if Arab numbering is default

Modified:
    pdfbox/branches/1.8/pdfbox/src/main/java/org/apache/pdfbox/pdfwriter/COSWriter.java

Modified: pdfbox/branches/1.8/pdfbox/src/main/java/org/apache/pdfbox/pdfwriter/COSWriter.java
URL: http://svn.apache.org/viewvc/pdfbox/branches/1.8/pdfbox/src/main/java/org/apache/pdfbox/pdfwriter/COSWriter.java?rev=1759321&r1=1759320&r2=1759321&view=diff
==============================================================================
--- pdfbox/branches/1.8/pdfbox/src/main/java/org/apache/pdfbox/pdfwriter/COSWriter.java (original)
+++ pdfbox/branches/1.8/pdfbox/src/main/java/org/apache/pdfbox/pdfwriter/COSWriter.java Mon
Sep  5 16:10:55 2016
@@ -25,6 +25,7 @@ import java.io.UnsupportedEncodingExcept
 import java.security.MessageDigest;
 import java.security.NoSuchAlgorithmException;
 import java.text.DecimalFormat;
+import java.text.DecimalFormatSymbols;
 import java.text.NumberFormat;
 import java.util.ArrayList;
 import java.util.Collections;
@@ -154,11 +155,13 @@ public class COSWriter implements ICOSVi
      */
     public static final byte[] ENDSTREAM = StringUtil.getBytes("endstream");
 
-    private NumberFormat formatXrefOffset = new DecimalFormat("0000000000");
+    private NumberFormat formatXrefOffset = new DecimalFormat("0000000000",
+            DecimalFormatSymbols.getInstance(Locale.US));
     /**
      * The decimal format for the xref object generation number data.
      */
-    private NumberFormat formatXrefGeneration = new DecimalFormat("00000");
+    private NumberFormat formatXrefGeneration = new DecimalFormat("00000",
+            DecimalFormatSymbols.getInstance(Locale.US));
 
     private NumberFormat formatDecimal = NumberFormat.getNumberInstance( Locale.US );
 



Mime
View raw message