Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1gxbQH-0002gk-Jo for pgsql-bugs@arkaria.postgresql.org; Sat, 23 Feb 2019 17:49:13 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.89) (envelope-from ) id 1gxbQG-00014a-4x for pgsql-bugs@arkaria.postgresql.org; Sat, 23 Feb 2019 17:49:12 +0000 Received: from makus.postgresql.org ([2001:4800:3e1:1::229]) by malur.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1gxbQF-00011s-Ql for pgsql-bugs@lists.postgresql.org; Sat, 23 Feb 2019 17:49:11 +0000 Received: from mail.verite.pro ([185.16.44.216]) by makus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1gxbQ8-0007kj-An for pgsql-bugs@lists.postgresql.org; Sat, 23 Feb 2019 17:49:10 +0000 Received: from genius-map.net (verite.pro [195.154.189.246]) by mail.verite.pro (Postfix) with ESMTP id 012A28C022D; Sat, 23 Feb 2019 18:43:53 +0100 (CET) Received: by genius-map.net (Postfix, from userid 1001) id F128A38A0E76; Sat, 23 Feb 2019 18:49:00 +0100 (CET) Content-Type: text/plain; charset="iso-8859-15" Content-Disposition: inline Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 Subject: RE: BUG #15651: Collation setting en_US.utf8 breaking sort order From: "Daniel Verite" To: "Kaleb Akalework" Cc: "Peter Geoghegan" ,"Tom Lane" ,"PostgreSQL mailing lists" In-Reply-To: <9421be5798da48c0a265bc13b0ef5224@asg.com> Date: Sat, 23 Feb 2019 18:48:55 +0100 Message-Id: <4049e84f-d114-4f48-bec2-432c715e2ff9@manitou-mail.org> X-Mailer: Manitou v1.7.0 List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk Kaleb Akalework wrote: > Ok so if this is intended behavior of UTF8 then I understand. My last > question then would be if I use a collation setting of C, does it mean I > won't be able to support multiple languages?=20 You seem to want to the sort order of C, but be aware that you might have to decide whether you want this: =3D> select upper('=E9' collate "C"); upper=20 ------- =E9 (1 row) or that: =3D> select upper('=E9' collate "en_US"); upper=20 ------- =C9 (1 row) To get the sort order of C but the interpretation of characters closer to what you'd expect from Unicode, it's possible for the database to have LC_COLLATE to "C", and LC_CTYPE to, say, en_US.UTF-8. See CREATE DATABASE. Best regards, --=20 Daniel V=E9rit=E9 PostgreSQL-powered mailer: http://www.manitou-mail.org Twitter: @DanielVerite