From: Tom Lane <tgl@sss.pgh.pa.us>
To: Alvaro Herrera <alvherre@alvh.no-ip.org>
Cc: Ralf Schuchardt <rasc@gmx.de>
Cc: Marco Lechner <mlechner@bfs.de>
Cc: pgsql-general@lists.postgresql.org
Subject: Re: support for DIN SPEC 91379 encoding
Date: Sun, 27 Mar 2022 14:06:25 -0400
Message-ID: <386726.1648404385@sss.pgh.pa.us> (raw)
In-Reply-To: <202203271747.p2lx5is5rdtj@alvherre.pgsql>
References: <202203271747.p2lx5is5rdtj@alvherre.pgsql>
Alvaro Herrera <alvherre@alvh.no-ip.org> writes:
> On 2022-Mar-27, Ralf Schuchardt wrote:
>> linked here https://www.xoev.de/downloads-2316#StringLatin it is said,
>> that the spec is a strict subset of unicode (E.1.6), and it is also
>> mentioned in E.1.4, that in UTF-8 all unicode characters can be
>> encoded. Therefore UTF-8 can be used to encode all DIN SPEC 91379
>> characters.
> So the remaining question is whether DIN SPEC 91379 requires an
> implementation to support character U+0000. If it does, then PostgreSQL
> is not conformant, because that character is the only one in Unicode
> that we don't support. If U+0000 is not required, then PostgreSQL is
> okay.
Hmm ... UTF8 as defined in RFC3629/STD63 [1] does not allow "all unicode
characters to be encoded". It disallows surrogate pairs (U+D800--U+DFFF)
and code points above U+10FFFF. We follow that spec, so depending on what
DIN 91379 *actually* says, we might have additional reasons not to be in
compliance. I don't read German unfortunately.
regards, tom lane
[1] http://www.faqs.org/rfcs/rfc3629.html
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, alvherre@alvh.no-ip.org, rasc@gmx.de, mlechner@bfs.de
Subject: Re: support for DIN SPEC 91379 encoding
In-Reply-To: <386726.1648404385@sss.pgh.pa.us>
References: <202203271747.p2lx5is5rdtj@alvherre.pgsql> <386726.1648404385@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