Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1krmgT-0001CG-VF for pgsql-general@arkaria.postgresql.org; Tue, 22 Dec 2020 18:46:57 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1krmgQ-0005JR-Tm for pgsql-general@arkaria.postgresql.org; Tue, 22 Dec 2020 18:46:54 +0000 Received: from makus.postgresql.org ([2001:4800:3e1:1::229]) by malur.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1krmgQ-0005JK-Ln for pgsql-general@lists.postgresql.org; Tue, 22 Dec 2020 18:46:54 +0000 Received: from sss.pgh.pa.us ([66.207.139.130]) by makus.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1krmgO-0006Hl-Lg for pgsql-general@postgresql.org; Tue, 22 Dec 2020 18:46:53 +0000 Received: from sss1.sss.pgh.pa.us (localhost [127.0.0.1]) by sss.pgh.pa.us (8.15.2/8.15.2) with ESMTP id 0BMIkidJ625397; Tue, 22 Dec 2020 13:46:44 -0500 From: Tom Lane To: "Mark Felder" cc: pgsql-general@postgresql.org Subject: Re: ts_parse reports different between MacOS, FreeBSD/Linux In-reply-to: <543023b3-7c17-4ed5-81d5-c6092ea98919@www.fastmail.com> References: <543023b3-7c17-4ed5-81d5-c6092ea98919@www.fastmail.com> Comments: In-reply-to "Mark Felder" message dated "Tue, 22 Dec 2020 12:15:39 -0600" MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-ID: <625395.1608662804.1@sss.pgh.pa.us> Content-Transfer-Encoding: quoted-printable Date: Tue, 22 Dec 2020 13:46:44 -0500 Message-ID: <625396.1608662804@sss.pgh.pa.us> List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk "Mark Felder" 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