Re: Unicode grapheme clusters - Mailing list pgsql-hackers

From Tom Lane
Subject Re: Unicode grapheme clusters
Date
Msg-id 1078022.1674325047@sss.pgh.pa.us
Whole thread Raw
In response to Re: Unicode grapheme clusters  (Bruce Momjian <bruce@momjian.us>)
Responses Re: Unicode grapheme clusters
Re: Unicode grapheme clusters
List pgsql-hackers
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.

            regards, tom lane



pgsql-hackers by date:

Previous
From: Bruce Momjian
Date:
Subject: Re: Unicode grapheme clusters
Next
From: Bruce Momjian
Date:
Subject: Re: Unicode grapheme clusters