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