Re: \w doesn't match non-ASCII letters

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: Peter Eisentraut <peter_e(at)gmx(dot)net>
Cc: Markus Bertheau <twanger(at)bluetwanger(dot)de>, pgsql-bugs(at)postgresql(dot)org
Subject: Re: \w doesn't match non-ASCII letters
Date: 2004-06-14 15:25:47
Message-ID: 465.1087226747@sss.pgh.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-bugs

Peter Eisentraut <peter_e(at)gmx(dot)net> writes:
> Markus Bertheau wrote:
>> oocms=# select '' ~ '^\\w$';
>> ?column?
>> ----------
>> f
>> (1 )

> What locale are you using for LC_COLLATE? If it's C or POSIX, you need
> to change it and re-initdb.

Another likely cause of trouble is that the regexp character
classification stuff is presently based on <ctype.h> functions and thus
cannot work in multibyte encodings.

regards, tom lane

In response to

Responses

Browse pgsql-bugs by date

  From Date Subject
Next Message Bruno Wolff III 2004-06-14 15:49:03 Re: inserting lots of values into a column that has "unique" property
Previous Message Peter Eisentraut 2004-06-14 15:15:37 Re: \w doesn't match non-ASCII letters