Re: A thought about regex versus multibyte character sets - Mailing list pgsql-hackers

From Alvaro Herrera
Subject Re: A thought about regex versus multibyte character sets
Date
Msg-id 20091201214611.GH5013@alvh.no-ip.org
Whole thread Raw
In response to A thought about regex versus multibyte character sets  (Tom Lane <tgl@sss.pgh.pa.us>)
Responses Re: A thought about regex versus multibyte character sets  (Tom Lane <tgl@sss.pgh.pa.us>)
List pgsql-hackers
Tom Lane wrote:

> I just spent a bit of time considering what we might do to fix this.
> The idea mentioned in the above thread was to switch over to using
> wchar_t in the regex code, but that seems to have a number of problems.
> One showstopper is that on some platforms wchar_t is only 16 bits and
> can't represent the full range of Unicode characters.  I don't want to
> fix case-folding only to break regexes for other uses.

We have a TODO item about having a regex specific data type.  Would
implementing that solve this problem?

-- 
Alvaro Herrera                                http://www.CommandPrompt.com/
PostgreSQL Replication, Consulting, Custom Development, 24x7 support


pgsql-hackers by date:

Previous
From: Marko Kreen
Date:
Subject: Re: Application name patch - v4
Next
From: Bruce Momjian
Date:
Subject: Re: Block-level CRC checks