[TYPO3-core] RFC #15790: Bug: CLI dispatcher uses the locale from the shell
Steffen Gebert
steffen at steffen-gebert.de
Sun Oct 24 20:55:52 CEST 2010
On 24.09.10 17:30, Oliver Klee wrote:
> 4. See that the "3.14159" is parsed as
I just tested this on a domainFactory server, which has german locale
defined in localconf.php (otherwise there's a bug with umlaut files in
thumbnails.php). When I remove it, I have C for all locales (thus no bug).
With the locale set to (setlocale(LC_ALL, 'de_DE.iso8859-1');)
It returns
> LC_ALL is de_DE.iso8859-1
> LC_NUMERIC is de_DE.iso8859-1
> floatval(3.14159) is 3,14159
The patch doesn't change anything (as my localconf.php is read
afterwards, of course).
Is this a good or bad sign?
> floatval(3.14159) === floatval('3.14159')
returns TRUE, also with the german locale
> floatval(3.14159) === floatval('3,14159')
is always FALSE.
Kind regards
Steffen
--
Steffen Gebert
TYPO3 Core Team Member
Use a newsreader! Check out
http://typo3.org/community/mailing-lists/use-a-news-reader/
More information about the TYPO3-team-core
mailing list