Re: JOHAB character lengths

From: Daniel Gustafsson <daniel(at)yesql(dot)se>
To: jtvjtv(at)gmail(dot)com, pgsql-docs(at)lists(dot)postgresql(dot)org
Subject: Re: JOHAB character lengths
Date: 2026-11-24 12:59:34
Message-ID: F578DF44-0B7F-4711-BCE8-EC101615E2A8@yesql.se
Views: Whole Thread | Raw Message | Download mbox | Resend email
Thread:
Lists: pgsql-docs

> On 20 Nov 2026, at 00:21, PG Doc comments form <noreply(at)postgresql(dot)org> wrote:

> The encodings listing in the documentation for postgres 19 shows JOHAB as
> having characters that are 1-3 bytes long.
>
> However as I understand the discussion about bug #19354, as well as the
> Unicode Consortium's conversion table, JOHAB only has characters that are
> 1-2 bytes long.

The thread for #19354 confirms that JOHAB sequences are 2 bytes, the relevant
portion from Wikipedia referred to in that thread is:

"KS X 1001, since 1992, also defines an alternative encoding known as
Johab. This represents a Hangul syllable as the sequence of three
five-bit values, split across two 8-bit bytes, most significant bit
first"

What is more interesting though is that #19354 was never closed with the patch
applied, only the trivial comment fixes were applied. Thanks for bringing it
up, will revive the thread.

--
Daniel Gustafsson

In response to

Browse pgsql-docs by date

  From Date Subject
Previous Message Oli Sennhauser 2026-11-24 10:28:05 Re: References/Links missing