From de9cf8fb8a36aea97fc762f028cb8da2c42e560c Mon Sep 17 00:00:00 2001 From: "Peter J. Holzer" Date: Thu, 18 Feb 2021 15:12:24 +0100 Subject: [PATCH] Add some multi-character strings to test sorting of German umlauts --- pgcollate | 2 ++ 1 file changed, 2 insertions(+) diff --git a/pgcollate b/pgcollate index af9a672..8b5a7ad 100755 --- a/pgcollate +++ b/pgcollate @@ -14,6 +14,8 @@ for c in range(1, 0xD800): csr.execute("insert into t_pgcollate(t) values(%s)", (chr(c),)) for c in range(0xE000, 0x110000): csr.execute("insert into t_pgcollate(t) values(%s)", (chr(c),)) +for s in ('asa', 'asb', 'assa', 'aßa', 'ata', 'bab', 'bäb', 'bac', ): + csr.execute("insert into t_pgcollate(t) values(%s)", (s,)) db.commit() csr.execute("select * from t_pgcollate order by t") for r in csr: