From: Tom Lane <tgl@sss.pgh.pa.us>
To: Peter J. Holzer <hjp-pgsql@hjp.at>
Cc: pgsql-general@lists.postgresql.org, Celia McInnis <celia.mcinnis@gmail.com>
Subject: Re: Uppercase version of ß desired
Date: Mon, 13 Mar 2023 18:54:43 -0400
Message-ID: <2371653.1678748083@sss.pgh.pa.us> (raw)
In-Reply-To: <20230313224505.snjtnuz75s76w3zi@hjp.at>
References: <CAGD6t7+327nPb4QgGQGwqqLn7ys95PfycSRsQ4+Sd8Dz4sqBuA@mail.gmail.com>
<20230313224505.snjtnuz75s76w3zi@hjp.at>
"Peter J. Holzer" <hjp-pgsql@hjp.at> writes:
> On 2023-03-13 17:38:51 -0400, Celia McInnis wrote:
>> I would be really happy if postgresql had an upper case version of the ß
>> german character.
> But the 'ß' is a bit special as it is usually uppercased to 'SS'
> (although 'ẞ' is now officially allowed, too).
> Apparently your (and my) locale doesn't uppercase ß at all, which isn't
> correct according to German spelling rules but was very common in the
> last decades.
Our code for libc locales doesn't support upcasing 'ß' to 'SS',
because it uses towlower() which can only manage
one-character-to-one-character transformations. It should work for
upcasing to 'ẞ', but as you say, you need to find a locale that thinks
that should happen.
You might have better luck if you have a version of Postgres that
supports ICU and you can use an ICU locale. That code path doesn't
appear to have any hard-wired assumption about how many characters
in convert to how many out.
regards, tom lane
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: tgl@sss.pgh.pa.us, hjp-pgsql@hjp.at, celia.mcinnis@gmail.com
Subject: Re: Uppercase version of ß desired
In-Reply-To: <2371653.1678748083@sss.pgh.pa.us>
References: <CAGD6t7+327nPb4QgGQGwqqLn7ys95PfycSRsQ4+Sd8Dz4sqBuA@mail.gmail.com> <20230313224505.snjtnuz75s76w3zi@hjp.at> <2371653.1678748083@sss.pgh.pa.us>
* 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