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

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: \w doesn't match non-ASCII letters
Дата
Msg-id 465.1087226747@sss.pgh.pa.us
обсуждение исходный текст
Ответ на Re: \w doesn't match non-ASCII letters  (Peter Eisentraut <peter_e@gmx.net>)
Ответы Re: \w doesn't match non-ASCII letters  (Markus Bertheau <twanger@bluetwanger.de>)
Список pgsql-bugs
Peter Eisentraut <peter_e@gmx.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

В списке pgsql-bugs по дате отправления:

Предыдущее
От: Peter Eisentraut
Дата:
Сообщение: Re: \w doesn't match non-ASCII letters
Следующее
От: Bruno Wolff III
Дата:
Сообщение: Re: inserting lots of values into a column that has "unique" property