Mantis - Quercus
Viewing Issue Advanced Details
2771 block always 07-07-08 11:56 07-10-08 12:42
fredo  
nam  
normal  
closed 3.1.6  
fixed  
none    
none 3.2.0  
0002771: quercus sprinf and hence DoublePrintfSegment.apply applies local to format-conversion
java's String.format(fmt, ...) will apply locale information upon
format-conversion which breaks several php modules which are
dependent on proper *printf output. (ie. TCPDF)

a simple fix is to change to:

String.format((Locale)null, fmt, ...)

to have standard "C" locale output as php5 uses.

Notes
(0003253)
nam   
07-10-08 12:42   
php/115j

sprintf("%f") now will use the locale set by setlocale()
sprintf("%F") will not use locale information