struts-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Christopher Schultz <ch...@christopherschultz.net>
Subject Re: [S1] Validator does not respect locale when validating double value?
Date Fri, 18 Jan 2013 21:23:35 GMT
Łucaz,

On Jan 18, 2013, at 16:00, Lukasz Lenart <lukaszlenart@apache.org> wrote:

> 2013/1/18 Christopher Schultz <chris@christopherschultz.net>:
>> The method validateDouble() totally ignores the user's Locale and
>> calls commons-validator's formatDouble(String) method instead of the
>> formatDouble(String,Locale) method.
>> 
>> The same seems to be true for all the validate[NumberType] methods and
>> validate[NumberType]Range methods.
>> 
>> This seems to be an i18n bug to me. Am I missing something?
> 
> Looks like...

Thanks for the sanity check. It's a simple patch, one that I am more than willing to provide.

Honestly, I'm shocked that struts 1, which is at least 10 years old, still has a glaring internationalization
bug like this.

-chris

---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
For additional commands, e-mail: user-help@struts.apache.org


Mime
View raw message