From: Oscar Carlberg <oscar.carlberg@fortnox.se>
To: Laurenz Albe <laurenz.albe@cybertec.at>
To: pgsql-general@lists.postgresql.org
Subject: Re: ICU, locale and collation question
Date: Tue, 9 May 2023 08:54:28 +0200
Message-ID: <4210aaef-06ff-628e-a2c8-a1a4bf28d278@fortnox.se> (raw)
In-Reply-To: <ae423dcf4beb77c20053bedb501400e01e5f2724.camel@cybertec.at>
References: <2a1de395-c69a-3dae-4459-dbdb633df637@fortnox.se>
<ae423dcf4beb77c20053bedb501400e01e5f2724.camel@cybertec.at>
On 5/8/23 22:07, Laurenz Albe wrote:
> Yes, that is safe.
>
> But it is not compatible with the old setup when it comes to lc_time,
> lc_messages and the others. You should use sv_SE.UTF-8 for these
> locale categories.
>
> Note that that won't cause problems with upgrading the C library.
>
> Yours,
> Laurenz Albe
>
Thank you very much for clarifying!
Our initdb setup would then look like this for compatibility;
-E 'UTF-8'
--locale-provider=icu
--icu-locale=sv-SE-x-icu
--lc_monetary=sv_SE.UTF-8
--lc-numeric=sv_SE.UTF-8
--lc-time=sv_SE.UTF-8
--lc-messages=en_US.UTF-8
Should we still provide createdb with --lc-collate=C and --lc-ctype=C,
or should we set those to sv_SE.UTF-8 as well?
Best regards,
Oscar
--
Innehållet i detta e-postmeddelande är konfidentiellt och avsett endast för
adressaten.Varje spridning, kopiering eller utnyttjande av innehållet är
förbjuden utan tillåtelse av avsändaren. Om detta meddelande av misstag
gått till fel adressat vänligen radera det ursprungliga meddelandet och
underrätta avsändaren via e-post
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-general@postgresql.org
Cc: oscar.carlberg@fortnox.se, laurenz.albe@cybertec.at
Subject: Re: ICU, locale and collation question
In-Reply-To: <4210aaef-06ff-628e-a2c8-a1a4bf28d278@fortnox.se>
References: <2a1de395-c69a-3dae-4459-dbdb633df637@fortnox.se> <ae423dcf4beb77c20053bedb501400e01e5f2724.camel@cybertec.at> <4210aaef-06ff-628e-a2c8-a1a4bf28d278@fortnox.se>
* 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