2 * This test must be run in a database with UTF-8 encoding,
3 * because other encodings don't support all the characters used.
5 SELECT getdatabaseencoding() <> 'UTF8'
10 SET client_encoding = utf8;
11 -- UTF-8 locale bug on macOS: isspace(0x85) returns true. \u0105 encodes
12 -- as 0xc4 0x85 in UTF-8; the 0x85 was interpreted here as a whitespace.
13 SELECT E'key\u0105=>value\u0105'::hstore;
19 SELECT 'keyą=>valueą'::hstore;
25 SELECT 'ą=>ą'::hstore;
31 SELECT 'keyąfoo=>valueą'::hstore;
37 -- More patterns that may depend on isspace() and locales, all discarded.
38 SELECT E'key\u000A=>value\u000A'::hstore; -- \n
44 SELECT E'key\u0009=>value\u0009'::hstore; -- \t
50 SELECT E'key\u000D=>value\u000D'::hstore; -- \r
56 SELECT E'key\u000B=>value\u000B'::hstore; -- \v
62 SELECT E'key\u000C=>value\u000C'::hstore; -- \f