bckfnn      2004/09/28 04:04:31

  Modified:    src/java/org/apache/fop/render/ps PSGenerator.java
  Log:
  Emit valid floating point numbers, even when running under a Locale with
  a decimal point different from '.'
  
  Revision  Changes    Path
  1.7       +5 -3      xml-fop/src/java/org/apache/fop/render/ps/PSGenerator.java
  
  Index: PSGenerator.java
  ===================================================================
  RCS file: /home/cvs/xml-fop/src/java/org/apache/fop/render/ps/PSGenerator.java,v
  retrieving revision 1.6
  retrieving revision 1.7
  diff -u -r1.6 -r1.7
  --- PSGenerator.java  22 Jun 2004 18:42:27 -0000      1.6
  +++ PSGenerator.java  28 Sep 2004 11:04:31 -0000      1.7
  @@ -23,7 +23,9 @@
   import java.io.IOException;
   import java.text.DateFormat;
   import java.text.DecimalFormat;
  +import java.text.DecimalFormatSymbols;
   import java.util.Date;
  +import java.util.Locale;
   import java.util.Stack;
   
   /**
  @@ -47,9 +49,9 @@
       
       private Stack graphicsStateStack = new Stack();
       private PSState currentState;
  -    private DecimalFormat df3 = new DecimalFormat("0.000");
  -    private DecimalFormat df1 = new DecimalFormat("0.#");
  -    private DecimalFormat df5 = new DecimalFormat("0.#####");
  +    private DecimalFormat df3 = new DecimalFormat("0.000", new 
DecimalFormatSymbols(Locale.US));
  +    private DecimalFormat df1 = new DecimalFormat("0.#", new 
DecimalFormatSymbols(Locale.US));
  +    private DecimalFormat df5 = new DecimalFormat("0.#####", new 
DecimalFormatSymbols(Locale.US));
   
       private StringBuffer tempBuffer = new StringBuffer(256);
   
  
  
  

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to