[php-src] Issue #9034: NumberFormatter currency format mismatch on Windows and Linux

From: Date: Mon, 18 Jul 2022 07:17:21 +0000
Subject: [php-src] Issue #9034: NumberFormatter currency format mismatch on Windows and Linux
Groups: php.bugs 
Request: Send a blank email to php-bugs+get-241947@lists.php.net to get a copy of this message
Issue: https://github.com/php/php-src/issues/9034 Author: hanishsingla ### Description NumberFormatter currency format produces different results on Windows and Linux machines ```php $ php -a Interactive mode enabled php > $f = new NumberFormatter('nl_NL', NumberFormatter::CURRENCY); php > echo $f->formatCurrency('1234.5672', 'EUR')."\n"; php > $f = new NumberFormatter('fr_FR', NumberFormatter::CURRENCY); php > echo $f->formatCurrency('1234.5672', 'EUR')."\n"; ``` It resulted in this output: ``` Linux: €1,234.57 Windows: € 1.234,57 Linux: €1,234.57 Windows: 1 234,57 € ``` Here is 3v4l version to reproduce the error (I am not sure which server it is, but it produces results similar to Windows system) https://3v4l.org/ivbEs#v8.0.21 ### PHP Version PHP 8.0.21 ### Operating System Alpine Linux v3.16

« previous php.bugs (#241947) next »