You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@velocity.apache.org by "Nathan Bubna (JIRA)" <ji...@apache.org> on 2005/09/15 02:15:54 UTC

[jira] Closed: (VELOCITY-252) Custom format in NumberTool doesn't use the provided Locale

     [ http://issues.apache.org/jira/browse/VELOCITY-252?page=all ]
     
Nathan Bubna closed VELOCITY-252:
---------------------------------

    Assign To:     (was: Velocity Developers Mailing List)

this was resolved before the 1.1 release.

> Custom format in NumberTool doesn't use the provided Locale
> -----------------------------------------------------------
>
>          Key: VELOCITY-252
>          URL: http://issues.apache.org/jira/browse/VELOCITY-252
>      Project: Velocity
>         Type: Bug
>   Components: Tools
>     Versions: 1.4
>  Environment: Operating System: All
> Platform: All
>     Reporter: Lari Hotari

>
> There is a small bug in NumberTool, it doesn't use the provided Locale when
> using a custom format. 
> patch:
> Index: NumberTool.java
> ===================================================================
> RCS file:
> /home/cvspublic/jakarta-velocity-tools/src/java/org/apache/velocity/tools/generic/NumberTool.java,v
> retrieving revision 1.1
> diff -u -r1.1 NumberTool.java
> --- NumberTool.java     6 Dec 2003 05:44:37 -0000       1.1
> +++ NumberTool.java     3 Feb 2004 05:44:32 -0000
> @@ -223,7 +223,7 @@
>          if (style < 0)
>          {
>              // we have a custom format
> -            nf = new DecimalFormat(format, new DecimalFormatSymbols(getLocale()));
> +            nf = new DecimalFormat(format, new DecimalFormatSymbols(locale));
>          }
>          else
>          {

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
   http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see:
   http://www.atlassian.com/software/jira


---------------------------------------------------------------------
To unsubscribe, e-mail: velocity-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: velocity-dev-help@jakarta.apache.org