2 * This test is for Linux/glibc systems and assumes that a full set of
3 * locales is installed. It must be run in a database with UTF-8 encoding,
4 * because other encodings don't support all the characters used.
6 SELECT getdatabaseencoding() <> 'UTF8' OR
7 (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
8 version() !~ 'linux-gnu'