Re: BUG #6457: Regexp not processing word (with special characters on ends) correctly (UTF-8)

From: Duncan Rance <duncan(at)dunquino(dot)com>
To: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
Cc: albert(dot)cieszkowski(at)cc(dot)com(dot)pl, pgsql-bugs(at)postgresql(dot)org
Subject: Re: BUG #6457: Regexp not processing word (with special characters on ends) correctly (UTF-8)
Date: 2012-02-15 09:18:56
Message-ID: 4EFDC1C4-F0C7-42A3-859C-6E98867CC614@dunquino.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-bugs

On 14 Feb 2012, at 18:28, Tom Lane wrote:
>
> Oh, I see the reason for this: the code in cclass() in regc_locale.c
> doesn't go further up than U+00FF, so no codes above that will be
> thought to be letters (or members of any other character class).
> Clearly we need to go further when we are dealing with UTF8.
> I'm not sure what a sane limit would be though.

The Basic Multilingual Plane goes up to FFFF:

https://en.wikipedia.org/wiki/Mapping_of_Unicode_characters#Planes

In response to

Browse pgsql-bugs by date

  From Date Subject
Next Message Duncan Rance 2012-02-15 09:21:13 Re: BUG #6457: Regexp not processing word (with special characters on ends) correctly (UTF-8)
Previous Message Andy Grimm 2012-02-15 05:09:12 Re: BUG #6412: psql & fe-connect truncate passwords