Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.96) (envelope-from ) id 1wzCaX-003s9K-1C for pgsql-hackers@arkaria.postgresql.org; Wed, 26 Aug 2026 12:18:42 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.96) (envelope-from ) id 1wzCaW-00CrMt-12 for pgsql-hackers@arkaria.postgresql.org; Wed, 26 Aug 2026 12:18:40 +0000 Received: from makus.postgresql.org ([2001:4800:3e1:1::229]) by malur.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.96) (envelope-from ) id 1wzCaV-00CrMc-0t for pgsql-hackers@lists.postgresql.org; Wed, 26 Aug 2026 12:18:40 +0000 Received: from flow-a4-smtp.messagingengine.com ([103.168.172.139]) by makus.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.98.2) (envelope-from ) id 1wzCaT-00000002VXI-1ZKv for pgsql-hackers@lists.postgresql.org; Wed, 26 Aug 2026 12:18:38 +0000 Received: from phl-compute-05.internal (phl-compute-05.internal [10.202.2.45]) by mailflow.phl.internal (Postfix) with ESMTP id B87EB1380161; Wed, 26 Aug 2026 08:18:34 -0400 (EDT) Received: from phl-frontend-04 ([10.202.2.163]) by phl-compute-05.internal (MEProxy); Wed, 26 Aug 2026 08:18:34 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=abdiel.eu; h=cc :cc:content-transfer-encoding:content-type:content-type:date :date:from:from:in-reply-to:in-reply-to:message-id:mime-version :references:reply-to:subject:subject:to:to; s=fm2; t=1787746714; x=1787750314; bh=7nYvkvb4doX1pcawbdF+krLYhwXj/xvxjR8qg51QeEY=; b= E3xZqkHyaiAaBFM7u0nzqTbwCgrzZpd1yIMOqbqsPNPL1C6PQ6WYe5EGxyTfBgXP VB8rJAAXMZ8Z/mImnBuoDlPh34Zp6K9ZB4ocSW3Da4iIiIomFhbQs+ZZLLiclpHD m4zQpnMvsmxAt8GwR/0MbcEwCzxkqszBdMZXmWUgvCcGXOX17hUF+mrIGF4UXJhz xotLna2zMzs2kPEclnO0QXnN2mCZRdHEJ01yZ93ls/yMC+3D62Ev5HkEHlNF8OWW C3qkRnn9czGEIXrJMDhxWmQiEahir841h33cljRFTHBvIbV5tZvEypajO7kbpZsH WlCyoxJTbQsGxaPiPgGC7g== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:cc:content-transfer-encoding :content-type:content-type:date:date:feedback-id:feedback-id :from:from:in-reply-to:in-reply-to:message-id:mime-version :references:reply-to:subject:subject:to:to:x-me-proxy :x-me-sender:x-me-sender:x-sasl-enc; s=fm3; t=1787746714; x= 1787750314; bh=7nYvkvb4doX1pcawbdF+krLYhwXj/xvxjR8qg51QeEY=; b=T eylpTW8xpxYoaL2lyBwPSzNoTFZ47uATZGba/cXibDdaQrgY5GYyY+e0QfDUvrb3 v2zzpSwys7id6pakRzVdfojN7ObprJ39dFw9jGkq8NIO2ZgTk7rwkgk9GiQPbjPA aT4D2jFouTrWKi3B8nJibYJWe1SdhA8t0wktNq04I/ntJFGWuA1lAXo4ksa6Z3fp LlGXOdHOU88+6RZ5MtqE4nIyTKkdjcCE3Fm5t1Kume73liuY3LiPuOzHlE8mcz3q XVUmWMonwMY4nF2TmlwPQvKZTdXDPZqZgIFAD3vRmX0PcOJibUoxvXrIywVik9Qd mrIggwFxZkfO1Yd9K0E8Q== X-ME-Sender: X-ME-Received: X-ME-Proxy-Cause: dmFkZTGqtoJ1KfhOzvQtFCngV9Cn2IxVwYGRcIfvEuregcUw/xh7NxZepMBUou2cDMGB2u fEuN0mziMFz6ubTs6gbyA/yV8YjX2oWczKLDswA9zvgc9DKYOZRHaXvG9/nAuEWmalUPLY NE0cKiwJxoljMev3bI7V210JUZ3yoytJcUumV1DhtzS9UfGrvG+P6MdCk3aCsL0Z+li6Vs eJ+au2xDKJbQKLU+lq4bYmxfBwO0PI0rcC2dcOErQpkF1c63fgDuCnnG5crbmeU4iuFENy h41KXodvIei9kS0q7bgFHZyCF/hCAvk+yyxppSVMUIYvYbSnzxdOB41kF0QgmZyp5NPeYv 6bLuvkFJNvz2xgPCOKz5hwVie5PT71mUfXvuaJA5OYAuv2zZda1u5RStYUvOZvU/S8WH6L 462MIzOnWvZdGDayYriOWbLAcrAoYIZlQ/1anSjAOXasdNWvVf90s/npCW9BBi3VLFbT3/ 2MZ1Yu7Yq73ddzz2IPUmqY5Tngn0j12DSCLref8xXTAVByHE07RAvR/hGO41uzkYuvmjTu 7nL8pFkJCGwBRU8S6g1gLYx34XRKzMY0gX2RYehPZKIPbvvRgUJyjb0+6j1DhBDJts8hJA xSFwDXGhan6t9Bx4tWl1ykI0wO8GSmkhSlnjtvsWo+SCcjYWfu9XLToO1OCg X-ME-Proxy: Feedback-ID: i19364b5b:Fastmail Received: by mail.messagingengine.com (Postfix) with ESMTPA; Wed, 26 Aug 2026 08:18:33 -0400 (EDT) From: "Jonathan Gonzalez V." To: Andrew Dunstan Cc: PostgreSQL Hackers Subject: Re: locale / encoding / meson cleanup In-Reply-To: (Andrew Dunstan's message of "Sun, 23 Aug 2026 09:00:46 -0400") References: Date: Wed, 26 Aug 2026 14:18:31 +0200 Message-ID: <87wltd2hyg.fsf@abdiel.eu> User-Agent: Gnus/5.13 (Gnus v5.13) MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk Hello! Andrew Dunstan writes: > ... > 1. test_regex_utf8 depends on the ctype, not just the encoding > ... I never run this test so it was a big surprise to me that after this: PG_TEST_INITDB_EXTRA_OPTS=3D'--no-locale --encoding=3DUTF8' meson test -C b= uild/ --suite setup --suite test_regex The error was there crystal clear! Tested patched 0001 and 0002 and now the test pass and works perfectly on riscv64 and x86. > > 2. collate.linux.utf8 has never run on a meson build > > While checking whether anything else fails in a C+UTF8 database, I found = that > collate.linux.utf8 wasn't running on my build at all. Its guard includes > > =C2=A0 =C2=A0 version() !~ 'linux-gnu' > > and meson builds don't produce that string: > > =C2=A0 =C2=A0 meson=C2=A0 =C2=A0 =C2=A0PostgreSQL 20devel on aarch64-linu= x, compiled by gcc-13.3.0, > 64-bit > =C2=A0 =C2=A0 autoconf=C2=A0 PostgreSQL 20devel on aarch64-unknown-linux-= gnu, compiled by gcc > ... I was able to reproduce the same issue with a riscv64 and x86, the patch 0003 was enough to fix the issue. I've run a long test and found some errors, not related to this patch, but will be triggered with the options: PG_TEST_INITDB_EXTRA_OPTS=3D'--no-locale --encoding=3DUTF8' Don't know if are useful information but here is some information. Test failed: 222/403 pg_dump - postgresql:pg_dump/010_dump_connstr = ERROR 14.13s exit status 4 253/403 scripts - postgresql:scripts/200_connstr = ERROR 4.18s exit status 3 294/403 subscription - postgresql:subscription/005_encoding = ERROR 8.16s exit status 4 The tests failed because it's passing to initdb the `--encoding` option twice and `--locale` and then `--no-locale` option, which is weird, but that's clearly and error because of the extra options, not related, to the patch, but it could be an issue in the farm since these test are forcing a `--locale` and `--encoding` option. I think that it's worth to keep these test in mind when testing Regards, -- Jonathan Gonzalez V. EDB https://www.enterprisedb.com