[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: developer.php: Locale broken



On Mon, Feb 23, 2004 at 02:23:47PM +0100, Igor Genibel wrote:
> * Jeroen van Wolffelaar <jeroen@wolffelaar.nl> [2004-02-23 14:05:11 +0100]:
> > In developer.wml, the locale is set to fr_FR. This makes the time code
> > for 'how long it takes to generate this page' broken, and might cause
> > other unexpected results. This is because with a European locale,
> > strings liks 12.34 are not interpreted as the float 12.34, but rather
> > the integer 12, as the dot is not recognized. However microtime() still
> > outputs dots and not comma's.
> > 
> > PHP's locale support is utterly broken, and thus I suggest to use the C
> > locale, as I also don't see a very good reason to use the French locale.
> 
> non C locale is mandatory in order to treat the data stored in the
> extract file. Moreover, if locale is not set or set to C all the 'extra'
> charaters are not displayed properly.

Perhaps set LC_NUMERIC and LC_TIME to C, then?

-- 
Colin Watson                                  [cjwatson@flatline.org.uk]



Reply to: