| /* | |
| * 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 |