From: Daniel Verite <daniel@manitou-mail.org>
To: Kaleb Akalework <kaleb.akalework@asg.com>
Cc: Peter Geoghegan <pg@bowt.ie>
Cc: Tom Lane <tgl@sss.pgh.pa.us>
Cc: PostgreSQL mailing lists <pgsql-bugs@lists.postgresql.org>
Subject: RE: BUG #15651: Collation setting en_US.utf8 breaking sort order
Date: Sat, 23 Feb 2019 18:48:55 +0100
Message-ID: <4049e84f-d114-4f48-bec2-432c715e2ff9@manitou-mail.org> (raw)
In-Reply-To: <9421be5798da48c0a265bc13b0ef5224@asg.com>
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?
You seem to want to the sort order of C, but be aware that you might
have to decide whether you want this:
=> select upper('é' collate "C");
upper
-------
é
(1 row)
or that:
=> select upper('é' collate "en_US");
upper
-------
É
(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,
--
Daniel Vérité
PostgreSQL-powered mailer: http://www.manitou-mail.org
Twitter: @DanielVerite
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Reply to all the recipients from your mail client; the link fills in
the headers below: reply via email
Some clients, webmail especially, drop In-Reply-To and References from
a link, and the reply then starts a new thread: use the mbox below.
To: pgsql-bugs@postgresql.org
Cc: daniel@manitou-mail.org, kaleb.akalework@asg.com, pg@bowt.ie, tgl@sss.pgh.pa.us
Subject: Re: BUG #15651: Collation setting en_US.utf8 breaking sort order
In-Reply-To: <4049e84f-d114-4f48-bec2-432c715e2ff9@manitou-mail.org>
References: <9421be5798da48c0a265bc13b0ef5224@asg.com> <4049e84f-d114-4f48-bec2-432c715e2ff9@manitou-mail.org>
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox