summaryrefslogtreecommitdiffstats
path: root/src/test/regress/expected/collate.linux.utf8_1.out
blob: ede5fdb5dcc4bfb25daf6f5be290cf532f09ba2b (plain)
1
2
3
4
5
6
7
8
9
10
11
/*
 * This test is for Linux/glibc systems and assumes that a full set of
 * locales is installed.  It must be run in a database with UTF-8 encoding,
 * because other encodings don't support all the characters used.
 */
SELECT getdatabaseencoding() <> 'UTF8' OR
       (SELECT count(*) FROM pg_collation WHERE collname IN ('de_DE', 'en_US', 'sv_SE', 'tr_TR') AND collencoding = pg_char_to_encoding('UTF8')) <> 4 OR
       version() !~ 'linux-gnu'
       AS skip_test \gset
\if :skip_test
\quit