Skip site navigation (1) Skip section navigation (2)

Re: A thought about regex versus multibyte character sets

From: Alvaro Herrera <alvherre(at)commandprompt(dot)com>
To: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
Cc: pgsql-hackers(at)postgreSQL(dot)org
Subject: Re: A thought about regex versus multibyte character sets
Date: 2009-12-01 21:46:11
Message-ID: (view raw, whole thread or download thread mbox)
Lists: 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                      
PostgreSQL Replication, Consulting, Custom Development, 24x7 support

In response to


pgsql-hackers by date

Next:From: Bruce MomjianDate: 2009-12-01 21:49:06
Subject: Re: Block-level CRC checks
Previous:From: Marko KreenDate: 2009-12-01 21:30:53
Subject: Re: Application name patch - v4

Privacy Policy | About PostgreSQL
Copyright © 1996-2018 The PostgreSQL Global Development Group