pg.ddx.io  pgsql-general@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Tom Lane <tgl@sss.pgh.pa.us>
To: Mark Felder <feld@FreeBSD.org>
Cc: pgsql-general@postgresql.org
Subject: Re: ts_parse reports different between MacOS, FreeBSD/Linux
Date: Tue, 22 Dec 2020 13:46:44 -0500
Message-ID: <625396.1608662804@sss.pgh.pa.us> (raw)
In-Reply-To: <543023b3-7c17-4ed5-81d5-c6092ea98919@www.fastmail.com>
References: <543023b3-7c17-4ed5-81d5-c6092ea98919@www.fastmail.com>

"Mark Felder" <feld@FreeBSD.org> writes:
> We have an application whose test suite fails on MacOS when running the search tests on unicode characters.

Yeah, known problem :-(.  The text search parser relies on the C library's
locale data to classify characters as being letters, digits, etc.
Unfortunately, the UTF8 locales on macOS are just horribly bad, and
report many results that are different from other platforms.

I suppose that Apple has got reasonable Unicode character knowledge
somewhere in their OS; they are just not very interested in making the
POSIX locale APIs work well.  Which leaves us with a bit of a problem
for getting consistent results cross-platform.

			regards, tom lane





view thread (2+ messages)

Message-ID: <625396.1608662804@sss.pgh.pa.us>
Permalink:  ../625396.1608662804@sss.pgh.pa.us/
Also on:    postgresql.org/message-id/625396.1608662804@sss.pgh.pa.us

 · 

reply

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, feld@FreeBSD.org
  Subject: Re: ts_parse reports different between MacOS, FreeBSD/Linux
  In-Reply-To: <625396.1608662804@sss.pgh.pa.us>
  References: <543023b3-7c17-4ed5-81d5-c6092ea98919@www.fastmail.com> <625396.1608662804@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