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 1wCZU6-0027Vm-2V for pgsql-bugs@arkaria.postgresql.org; Tue, 14 Apr 2026 08:51:03 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.96) (envelope-from ) id 1wCZU5-00Apet-0G for pgsql-bugs@arkaria.postgresql.org; Tue, 14 Apr 2026 08:51:01 +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 1wCZU4-00Apel-2S for pgsql-bugs@lists.postgresql.org; Tue, 14 Apr 2026 08:51:01 +0000 Received: from meesny.iki.fi ([195.140.195.201]) by magus.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.98.2) (envelope-from ) id 1wCZU3-00000000zep-1f8C for pgsql-bugs@lists.postgresql.org; Tue, 14 Apr 2026 08:51:01 +0000 Received: from [10.0.2.15] (unknown [130.41.208.1]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits) key-exchange x25519 server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) (Authenticated sender: hlinnaka) by meesny.iki.fi (Postfix) with ESMTPSA id 4fvyfm5BmvzyPs; Tue, 14 Apr 2026 11:50:56 +0300 (EEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=iki.fi; s=meesny; t=1776156657; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=/EQHcSyCGcVxcYhXL//3RQ91FzAbRslVxi56DNJsZGc=; b=lCU8nSfIVsvKflWsmOV9mRYEpoTiXYnqWj61O/Y1JVPqrJ1IdRjaovL5TT2UZVwSaM6lpN teO8wywuRQcAiwZ90j6fs+qmO6eMf4QFwVuhGWXDAZ/d0mPbV0HJrD1em2zg55+9iot4fl YvVQWCoDCXKJvTxzabFy5svBV2QpVCY= ARC-Seal: i=1; a=rsa-sha256; d=iki.fi; s=meesny; cv=none; t=1776156657; b=ypJ3CIMrn1EYSxqeS2pemnx+sowgZooixcmUEIqt7yT1Vj737c15JPxVPrGHRPuwIiCh3X 0KMs/lEeA/7CsaVDEn5F6grrOxI/TAxqTpNjlLINifIyZFHoeE1/nVBtf1SFOEi/8DVjWs gdZe44Q2B5IRCD7CUaw3EoTjZ+T4u+o= ARC-Authentication-Results: i=1; ORIGINATING; auth=pass smtp.auth=hlinnaka smtp.mailfrom=hlinnaka@iki.fi ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=iki.fi; s=meesny; t=1776156657; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=/EQHcSyCGcVxcYhXL//3RQ91FzAbRslVxi56DNJsZGc=; b=LuaH+PwG1flz7U7DFOgux43rQpKrnJWZeYvHbC+IWXWWsDxISXGAHMH0BdmbXFRlgedr0P BkYkH3ow5zSJ3dXWG+fJ/jwNaNkHzpCBKSfdICxsLSkKw2pdkwSeIiQnxE/CdmLNgZKg3n vL+mQWuI7oU9LnzLsaljbC937dfEdcw= Message-ID: <6a8122ac-123d-4e93-9269-0b3be1e4a5a4@iki.fi> Date: Tue, 14 Apr 2026 11:50:50 +0300 MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: BUG #19354: JOHAB rejects valid byte sequences To: Thomas Munro , Robert Haas Cc: Tom Lane , Jeroen Vermeulen , VASUKI M , pgsql-bugs@lists.postgresql.org References: <19354-eefe6d8b3e84f9f2@postgresql.org> <2292889.1765846569@sss.pgh.pa.us> <2393116.1765899706@sss.pgh.pa.us> Content-Language: en-US From: Heikki Linnakangas In-Reply-To: Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk On 14/04/2026 09:30, Thomas Munro wrote: > On Wed, Dec 17, 2025 at 7:43 AM Robert Haas wrote: >> I think there is a good chance that the right going-forward fix is to >> deprecate the encoding, because according to >> https://www.unicode.org/Public/MAPPINGS/EASTASIA/ReadMe.txt this and >> everything else that's now under >> https://www.unicode.org/Public/MAPPINGS/OBSOLETE/EASTASIA/ were >> deprecated in 2001. By the time v19 is released, the deprecation will >> be a quarter-century old, and the fact that it doesn't work is good >> evidence that few people will miss it, though perhaps the original >> poster will want to put forward an argument for why we should still >> care about this. > > Right, that stuff was withdrawn, along with the BIG5 and JIS X 0212 > mappings (here's some interesting discussion about their normative > status[1]). From what I can figure out, JOHAB was an MS-DOS codepage > (1361), obsoleted by UHC (949) some time around MS-DOS 6.22 or MS-DOS > 7 and Windows 95. > > So +1 from me, set the phasers to git rm. +1 > Based on the comments for enum pg_enc, we don't need to worry about > numerical stability of client-only encodings, so I just deleted it > (unlike PG_MULE_INTERNAL which became PG_UNUSED_1). Ok. I hope there are no 8.2-era client programs out there that are still abusing pg_wchar.h. I think we're good, but we've never really exercised the strategy that was laid out in commit 8468146b03c8. > Wait until 20, or just do it now? Let's just do it now. - Heikki