From: Tom Lane <tgl@sss.pgh.pa.us>
To: mack@agilereasoning.com
Cc: pgsql-bugs@lists.postgresql.org
Subject: Re: BUG #16222: [[:print:]] doesn't correctly handle Emoji skin tone modifiers on MacOS
Date: Tue, 21 Jan 2020 12:52:29 -0500
Message-ID: <25913.1579629149@sss.pgh.pa.us> (raw)
In-Reply-To: <16222-35e7eba712c52525@postgresql.org>
References: <16222-35e7eba712c52525@postgresql.org>
PG Bug reporting form <noreply@postgresql.org> writes:
> On Linux heroku-18, these expressions both eval true:
> select '✌'~'\A[[:print:]]*\Z';
> select '✌ð»'~'\A[[:print:]]*\Z';
> On MacOS Catalina, the 1st evals true but the 2nd evals false.
This is entirely a function of what your operating system's
locale support does. So it could be that you chose the wrong
LC_CTYPE setting for the macOS database -- in C locale, for
example, "false" is the right answer. However, we've observed
that macOS's UTF8-based locales seem pretty brain-dead about
handling of multibyte characters :-(. So it's likely that this
boils down to being Apple's bug. I haven't detected any interest
on their part in improving their POSIX locale support, unfortunately.
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-bugs@postgresql.org
Cc: tgl@sss.pgh.pa.us, mack@agilereasoning.com
Subject: Re: BUG #16222: [[:print:]] doesn't correctly handle Emoji skin tone modifiers on MacOS
In-Reply-To: <25913.1579629149@sss.pgh.pa.us>
References: <16222-35e7eba712c52525@postgresql.org> <25913.1579629149@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