Re: BUG #19354: JOHAB rejects valid byte sequences

From: Daniel Gustafsson <daniel(at)yesql(dot)se>
To: Henson Choi <assam258(at)gmail(dot)com>
Cc: Robert Haas <robertmhaas(at)gmail(dot)com>, Thomas Munro <thomas(dot)munro(at)gmail(dot)com>, Heikki Linnakangas <hlinnaka(at)iki(dot)fi>, Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>, Jeroen Vermeulen <jtvjtv(at)gmail(dot)com>, VASUKI M <vasukianand0119(at)gmail(dot)com>, pgsql-bugs(at)lists(dot)postgresql(dot)org
Subject: Re: BUG #19354: JOHAB rejects valid byte sequences
Date: 2026-11-24 13:01:19
Message-ID: 9E8C9072-C12B-496D-B86D-1353AF6920A3@yesql.se
Views: Whole Thread | Raw Message | Download mbox | Resend email
Thread:
Lists: pgsql-bugs

> On 16 May 2026, at 11:39, Henson Choi <assam258(at)gmail(dot)com> wrote:

> Right -- the cosmetic encnames.c comment cleanup is what Thomas
> pushed; the actual verifier fix is still pending. Tatsuo gave a +1
> for preserving JOHAB and applying the verifier correction.
>
> Thomas may have other priorities right now. This is not urgent on my
> end, so I am content to wait for him.

A recent docs thread [0] made me go back to this and realized it never got
applied. I rebased and ran this through CI, and asked an LLM to rewrite the
testcases to not require UTF8 and thus get rid of the alternative output file
(more tests were also added to increase coverage).

Reading the thread as well as the Wikipedia entry I believe this is still
correct and desirable, any objections to going ahead with this (master only, no
backpatch)?

--
Daniel Gustafsson

[0] https://postgr.es/m/179513051121.884075.16333294435536633083@wrigleys.postgresql.org

Attachment Content-Type Size
v2-0001-Fix-JOHAB-encoding-validation-to-match-KS-X-1001-.patch application/octet-stream 15.1 KB

In response to

Responses

Browse pgsql-bugs by date

  From Date Subject
Next Message Jesper St John 2026-11-24 13:06:31 Re: Timing issue in pg_basebackup
Previous Message Fujii Masao 2026-11-24 11:45:39 Re: BUG #19631: currtid2() on a view with GROUP BY ctid crashes with XX000