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 1vVhlJ-006WRP-2g for pgsql-bugs@arkaria.postgresql.org; Wed, 17 Dec 2025 02:59:38 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.96) (envelope-from ) id 1vVhlH-009YOY-2F for pgsql-bugs@arkaria.postgresql.org; Wed, 17 Dec 2025 02:59:36 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.96) (envelope-from ) id 1vVhlH-009YOQ-1P for pgsql-bugs@lists.postgresql.org; Wed, 17 Dec 2025 02:59:36 +0000 Received: from fhigh-b6-smtp.messagingengine.com ([202.12.124.157]) by magus.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.96) (envelope-from ) id 1vVhlF-0019X5-2l for pgsql-bugs@lists.postgresql.org; Wed, 17 Dec 2025 02:59:35 +0000 Received: from phl-compute-01.internal (phl-compute-01.internal [10.202.2.41]) by mailfhigh.stl.internal (Postfix) with ESMTP id 599117A0171; Tue, 16 Dec 2025 21:59:32 -0500 (EST) Received: from phl-frontend-04 ([10.202.2.163]) by phl-compute-01.internal (MEProxy); Tue, 16 Dec 2025 21:59:32 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=paquier.xyz; h= cc:cc: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=fm1; t=1765940372; x=1766026772; bh=gevTWgqNvb bz4z8hzi1CeKeT7v2QKT62jazosLwddK4=; b=ITlobkldd6bz2nH5bXuDPTwRbL RdrDDk5O6tLFs5YSBrEMbrSeUwEsZr/mRZzhk1L8EloTaryZgrpTVk/S44UOHyEQ 8dnLZ9iN8jFPTTMHyngPQSThRCVydxrzddFtKmDN/bzHMtmxZmwY8oRps6hK5/lc /YXWKwEyBaFujfmOgCt6tVUqhRFtUlOCvcb7Bp6GW+wlFsOFYBSAAcGnUteZErEW Z3zvU5Nh72IQ8fhMyg0lT/9gEXPUGZ3SVIJTCEKAPhokFdEzG43N36WMJqvKFOGB d88I0BfrlVyzGQZweWkKJ4BqDkE3viZxxKn6lrgXlrJiarpTdPjtan67E2MQ== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:cc: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=fm1; t= 1765940372; x=1766026772; bh=gevTWgqNvbbz4z8hzi1CeKeT7v2QKT62jaz osLwddK4=; b=Ri/ILGjBSh4YZjCRmLC7pIgs4LW/nemCtvk3lijKMoKocDa4iux /ygmLB1atb1X1OD2R74nwreQwd6EnlCyrGkxs6Ix2RDmyWAkMKyISHQNYEOEWmGA frPTKdFrKhoLtJw7YArDzNc9AZTLsaogrMezXxoCpTVhDNamoh7nvNxiHq53i0Zs QiAVobnoKqeuz/x0/erZyfCfrZjwGEfOtQAFE7H+16p+D5fXxdGuoHssQwcQ43mw b9gDxb6XKjz+l66u9vPRkW/1JrK1UWnU9eGbX580g/LMv3vBcuaIwQoF314+Iexx jqtULFUN3qJOpm7NcHqXMOtQ3sad2/pwUTA== X-ME-Sender: X-ME-Received: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgeefgedrtddtgdegudegvdcutefuodetggdotefrod ftvfcurfhrohhfihhlvgemucfhrghsthforghilhdpuffrtefokffrpgfnqfghnecuuegr ihhlohhuthemuceftddtnecusecvtfgvtghiphhivghnthhsucdlqddutddtmdenfghrlh cuvffnffculdejtddmnecujfgurhepfffhvfevuffkfhggtggujgesghdtreertddtvden ucfhrhhomhepofhitghhrggvlhcurfgrqhhuihgvrhcuoehmihgthhgrvghlsehprghquh hivghrrdighiiiqeenucggtffrrghtthgvrhhnpeetleeifedufffhhfdtteelgeeggeff hfekueevteeigfduudevudetgfegiedvjeenucevlhhushhtvghrufhiiigvpedtnecurf grrhgrmhepmhgrihhlfhhrohhmpehmihgthhgrvghlsehprghquhhivghrrdighiiipdhn sggprhgtphhtthhopeehpdhmohguvgepshhmthhpohhuthdprhgtphhtthhopehtghhlse hsshhsrdhpghhhrdhprgdruhhspdhrtghpthhtoheprhhosggvrhhtmhhhrggrshesghhm rghilhdrtghomhdprhgtphhtthhopehjthhvjhhtvhesghhmrghilhdrtghomhdprhgtph htthhopehvrghsuhhkihgrnhgrnhgutdduudelsehgmhgrihhlrdgtohhmpdhrtghpthht ohepphhgshhqlhdqsghughhssehlihhsthhsrdhpohhsthhgrhgvshhqlhdrohhrgh X-ME-Proxy: Feedback-ID: i0fe9450f:Fastmail Received: by mail.messagingengine.com (Postfix) with ESMTPA; Tue, 16 Dec 2025 21:59:29 -0500 (EST) Date: Wed, 17 Dec 2025 11:59:17 +0900 From: Michael Paquier To: Tom Lane Cc: Robert Haas , Jeroen Vermeulen , VASUKI M , pgsql-bugs@lists.postgresql.org Subject: Re: BUG #19354: JOHAB rejects valid byte sequences Message-ID: References: <19354-eefe6d8b3e84f9f2@postgresql.org> <2292889.1765846569@sss.pgh.pa.us> <2393116.1765899706@sss.pgh.pa.us> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha512; protocol="application/pgp-signature"; boundary="G/3J6JhiVljBTI2y" Content-Disposition: inline In-Reply-To: <2393116.1765899706@sss.pgh.pa.us> List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk --G/3J6JhiVljBTI2y Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Tue, Dec 16, 2025 at 10:41:46AM -0500, Tom Lane wrote: > Robert Haas writes: >> I'm >> left with the conclusions that (1) nobody ever actually tried using >> this encoding for anything real until 3 days ago and (2) we don't have >> any testing infrastructure that verifies that the characters in the >> mapping tables are actually accepted by pg_verifymbstr(). I wonder how >> many other encodings we have that don't actually work? >=20 > Indeed. Anyone want to do some testing? FWIW, I have been made aware a couple of weeks ago by a colleague that SJIS and SHIFT_JIS_2004 are used by some customers, and that we are many years behind an update of the conversion mappings in the tree with Postgres not understanding some of the characters. These are two marginal in the mostly-UTF8 world we live in these days, but it's annoying for byte sequences that should not change across the years, just be refreshed with new data. -- Michael --G/3J6JhiVljBTI2y Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQIzBAABCgAdFiEEG72nH6vTowiyblFKnvQgOdbyQH0FAmlCHIUACgkQnvQgOdby QH0hvhAAqowEaAnxc8tpL/jaaU1mnaOLW9BRRnGzvDXzzswsk0PHJoUflo6dMOaJ ng7elIRP3LUjHTJ0I48iCNdykW27EPmdVomjMzVBoZ7QBe0q6zE8IyiTlKpLqNr7 N96LlgpncbQ/K1d2vUk0T6j9C31m7Bwi2IAtzXHwQ0NuATRaUQyT1qymGd3bpK8w QfSkSLu7Bs6IzzDHdSYy7rUhdIM44uTksQyL0Igymoe7BrGluu9qS1V0Kx/A9vpT YewX6GeWxQM34c44jHQo3F5Qlx2bTxrvFM6E+f7Sp13TbTISlbl/3qvk8uNiinhP Kv0WEvVTv4vANoGzrlzCeTWq/kmc3gzKkRANUFSW/Im3YvY81DvoAj+vVZR3s2cW K+CxYtIv4QlnLfP8jig1cQLmxcp7xTXL7AZzuNx0JYXASU3+FomEW/HVUwa93WO0 q9Z081C7vg+EZx5QxqyF0dskvH5WuEVoZ4eYEerwGiURHZ5ekxXCIQzrlpH2X6sV ldjYmR6fEJebhhbvklQGMZq0O/FJd9xHcemFnNyMidmqLpoz8w1gQXxyLxfNoAYO dKIi2piGkxKKKIPZj5phm4/LgPISUfNtZQtD+mVc8XIxfOl4s2ITomDV1+TKfUAR Fjd86C2sHlMRQN354+ufBOFZFq6ArBxCnQy0pFzlyXAV14iPPcE= =tMqf -----END PGP SIGNATURE----- --G/3J6JhiVljBTI2y--