Re: Unicode grapheme clusters - Mailing list pgsql-hackers

From Bruce Momjian
Subject Re: Unicode grapheme clusters
Date
Msg-id Y8wsca5tCeR5AnZJ@momjian.us
Whole thread Raw
In response to Re: Unicode grapheme clusters  (Tom Lane <tgl@sss.pgh.pa.us>)
List pgsql-hackers
On Sat, Jan 21, 2023 at 01:17:27PM -0500, Tom Lane wrote:
> Bruce Momjian <bruce@momjian.us> writes:
> > I just checked if wcswidth() would honor graphene clusters, though
> > wcwidth() does not, but it seems wcswidth() treats characters just like
> > wcwidth():
> 
> Well, that's at least potentially fixable within libc, while wcwidth
> clearly can never do this right.
> 
> Probably our long-term answer is to avoid depending on wcwidth
> and use wcswidth instead.  But it's hard to get excited about
> doing the legwork for that until popular libc implementations
> get it right.

Agreed.

-- 
  Bruce Momjian  <bruce@momjian.us>        https://momjian.us
  EDB                                      https://enterprisedb.com

Embrace your flaws.  They make you human, rather than perfect,
which you will never be.



pgsql-hackers by date:

Previous
From: Tom Lane
Date:
Subject: Re: Unicode grapheme clusters
Next
From: Egor Rogov
Date:
Subject: Re: pg_stats and range statistics