Bug #66962 [Opn->Dup]: CLI ignores setlocale regarding number conversion

From: Date: Thu, 27 Mar 2014 09:54:22 +0000
Subject: Bug #66962 [Opn->Dup]: CLI ignores setlocale regarding number conversion
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-184918@lists.php.net to get a copy of this message
Edit report at https://bugs.php.net/bug.php?id=66962&edit=1

 ID:                 66962
 Updated by:         ab@php.net
 Reported by:        cpuidle at gmx dot de
 Summary:            CLI ignores setlocale regarding number conversion
-Status:             Open
+Status:             Duplicate
 Type:               Bug
 Package:            CGI/CLI related
 Operating System:   Win7 32bit
 PHP Version:        5.5.10
 Block user comment: N
 Private report:     N

 New Comment:

see bug #65230


Previous Comments:
------------------------------------------------------------------------
[2014-03-26 19:07:41] cpuidle at gmx dot de

Description:
------------
CLI ignores number formatting when locales are set

Gives in browser:
German_Germany.1252 3,1412592

Gives in CLI:
German_Germany.1252 3.1412592

Test script:
---------------
<?php
echo(setlocale(LC_ALL,array('de_DE','deu_deu'))."\n");
$p = 3.1412592;
echo((string)$p);

Expected result:
----------------
3,1412592

Actual result:
--------------
3.1412592


------------------------------------------------------------------------



-- 
Edit this bug report at https://bugs.php.net/bug.php?id=66962&edit=1


Thread (2 messages)

« previous php.bugs (#184918) next »