1--TEST--
2Unix locale names are rejected on Windows, except for some special cases
3--SKIPIF--
4<?php
5if (substr(PHP_OS, 0, 3) != 'WIN') die('skip this test is for Windows platforms only');
6?>
7--FILE--
8<?php
9var_dump(setlocale(LC_ALL, 'de_DE'));
10var_dump(setlocale(LC_ALL, 'de_DE.UTF-8'));
11// the following are supposed to be accepted
12var_dump(setlocale(LC_ALL, 'uk_UK'));
13var_dump(setlocale(LC_ALL, 'uk_US'));
14var_dump(setlocale(LC_ALL, 'us_UK'));
15var_dump(setlocale(LC_ALL, 'us_US'));
16?>
17===DONE===
18--EXPECT--
19bool(false)
20bool(false)
21string(27) "English_United Kingdom.1252"
22string(26) "English_United States.1252"
23string(27) "English_United Kingdom.1252"
24string(26) "English_United States.1252"
25===DONE===
26