| 1 |
/* |
| 2 |
* This test must be run in a database with UTF-8 encoding |
| 3 |
* and a Unicode-aware locale. |
| 4 |
* |
| 5 |
* Also disable this file for ICU, because the test for the |
| 6 |
* Turkish dotted I is not correct for many ICU locales. citext always |
| 7 |
* uses the default collation, so it's not easy to restrict the test |
| 8 |
* to the "tr-TR-x-icu" collation where it will succeed. |
| 9 |
* |
| 10 |
* Also disable for Windows. It fails similarly, at least in some locales. |
| 11 |
*/ |
| 12 |
SELECT getdatabaseencoding() <> 'UTF8' OR |
| 13 |
version() ~ '(Visual C\+\+|mingw32|windows)' OR |
| 14 |
(SELECT (datlocprovider = 'c' AND datctype = 'C') OR datlocprovider = 'i' |
| 15 |
FROM pg_database |
| 16 |
WHERE datname=current_database()) |
| 17 |
AS skip_test \gset |
| 18 |
\if :skip_test |
| 19 |
\quit |