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

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: \w doesn't match non-ASCII letters
Дата
Msg-id 3801.1087231716@sss.pgh.pa.us
обсуждение исходный текст
Ответ на Re: \w doesn't match non-ASCII letters  (Markus Bertheau <twanger@bluetwanger.de>)
Список pgsql-bugs
Markus Bertheau <twanger@bluetwanger.de> writes:
> Is there something planned to support UTF-8 in regexps?

It'd be relatively easy to use the <wctype.h> functions here if we
were convinced that pg_mb2wchar() generated exactly the same
wide-character encoding as the C library is expecting for the current
LC_CTYPE setting.  In the absence of such a guarantee I think we'd
have to convert the pg_wchar back to multibyte form and then apply
mbstowcs(), which is rather painful, not least because our wide
character support doesn't seem to have any function for converting
back to multibyte form ...

Tatsuo, any thoughts here?

            regards, tom lane

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

Предыдущее
От: Markus Bertheau
Дата:
Сообщение: Re: \w doesn't match non-ASCII letters
Следующее
От: "PostgreSQL Bugs List"
Дата:
Сообщение: BUG #1164: Informix compatibility ecpg