1--TEST-- 2Bug #65769 localeconv() broken in TS builds 3--SKIPIF-- 4<?php 5if (substr(PHP_OS, 0, 3) != 'WIN') { 6 die('skip Windows only'); 7} 8?> 9--FILE-- 10<?php 11 12$locales = array('sve', 'french', 'us', 'ru', 'czech', 'serbian'); 13 14foreach ($locales as $locale) { 15 $locale = setlocale(LC_ALL, $locale); 16 $lconv = localeconv(); 17 var_dump( 18 $locale, 19 $lconv['decimal_point'], 20 $lconv['thousands_sep'], 21 $lconv['int_curr_symbol'], 22 $lconv['currency_symbol'], 23 $lconv['mon_decimal_point'], 24 $lconv['mon_thousands_sep'] 25 ); 26 echo '++++++++++++++++++++++', "\n"; 27} 28 29?> 30+++DONE+++ 31--EXPECTF-- 32string(19) "Swedish_Sweden.1252" 33string(1) "," 34string(1) "�" 35string(3) "SEK" 36string(2) "kr" 37string(1) "," 38string(1) "." 39++++++++++++++++++++++ 40string(18) "French_France.1252" 41string(1) "," 42string(1) "�" 43string(3) "EUR" 44string(1) "�" 45string(1) "," 46string(1) "�" 47++++++++++++++++++++++ 48string(26) "English_United States.1252" 49string(1) "." 50string(1) "," 51string(3) "USD" 52string(1) "$" 53string(1) "." 54string(1) "," 55++++++++++++++++++++++ 56string(2) "ru" 57string(1) "," 58string(1) "�" 59string(3) "RUB" 60string(1) "?" 61string(1) "," 62string(1) "�" 63++++++++++++++++++++++ 64string(25) "Czech_Czech Republic.1250" 65string(1) "," 66string(1) "�" 67string(3) "CZK" 68string(2) "K�" 69string(1) "," 70string(1) "�" 71++++++++++++++++++++++ 72string(19) "Serbian_Serbia.1250" 73string(1) "," 74string(1) "." 75string(3) "RSD" 76string(3) "RSD" 77string(1) "," 78string(1) "." 79++++++++++++++++++++++ 80+++DONE+++ 81