Mantis - Quercus
Viewing Issue Advanced Details
4364 major always 01-26-11 13:33 01-26-11 13:33
bodhuin  
 
normal  
new 4.0.14  
open  
none    
none  
0004364: sprintf method with "F" formatting should be non localized...
The php method sprintf with usage of formatting non locale - aware should be treated without Locale consideration.
F - the argument is treated as a float, and presented as a floating-point number (non-locale aware). Available since PHP 4.3.10 and PHP 5.0.3.

Locale::setDefault(Locale::ITALIAN);
echo sprintf('%.1F', 1.0)

should produced 1.0 instead of 1,0 result.

There are no notes attached to this issue.