#1134: unexpected behavior of AgaviDecimalFormatter's thousand separators when
passing a number < 1000
-------------------------------------+--------------------------------------
 Reporter:  mec...@…                 |        Owner:  dominik
     Type:  task                     |       Status:  closed 
 Priority:  low                      |    Milestone:  1.0.2  
Component:  util                     |      Version:  1.0.1  
 Severity:  normal                   |   Resolution:  wontfix
 Keywords:                           |    Has_patch:  0      
-------------------------------------+--------------------------------------
Changes (by david):

  * status:  new => closed
  * resolution:  => wontfix


Comment:

 I've investigated this issue further and also compared the behavior to
 that of other systems and implementations.

 Most significantly, ICU behaves the exact same way. In ICU, a number like
 {{{1,23.45,67}}} parses to {{{123.4567}}} (with english locale). The
 parsing is simply lenient. Ruby/Rails does the same, too, etc.

 I've thus decided not to fix this. The primary motivation behind this
 decision is to keep compatibility with ICU and thus ext/intl, should we
 one day decide to implement support for it (or migrate to it entirely).
 Besides, it would be a pain to implement :)

 However, !AgaviDecimalFormatter and !AgaviNumberValidator will receive a
 bunch of related fixes and cleanups; I'll create separate tickets for
 those.

-- 
Ticket URL: <http://trac.agavi.org/ticket/1134#comment:4>
Agavi <http://www.agavi.org/>
An MVC Framework for PHP5



_______________________________________________
Agavi Tickets Mailing List
[email protected]
http://lists.agavi.org/mailman/listinfo/tickets

Reply via email to