Re: BUG #6457: Regexp not processing word (with special characters on ends) correctly (UTF-8)
От
Tom Lane
Тема
Re: BUG #6457: Regexp not processing word (with special characters on ends) correctly (UTF-8)
Дата
Msg-id
11041.1329244091@sss.pgh.pa.us
Ответ на
BUG #6457: Regexp not processing word (with special characters on
ends) correctly (UTF-8) (albert.cieszkowski@cc.com.pl)
Список
Дерево обсуждения
BUG #6457: Regexp not processing word (with special characters on
ends) correctly (UTF-8) albert.cieszkowski@cc.com.pl
Re: BUG #6457: Regexp not processing word (with special characters on ends) correctly (UTF-8) Tom Lane <tgl@sss.pgh.pa.us>
Re: BUG #6457: Regexp not processing word (with special characters on ends) correctly (UTF-8) Duncan Rance <postgres@dunquino.com>
Re: BUG #6457: Regexp not processing word (with special characters on ends) correctly (UTF-8) Duncan Rance <duncan@dunquino.com>
Re: BUG #6457: Regexp not processing word (with special characters on ends) correctly (UTF-8) Tom Lane <tgl@sss.pgh.pa.us>
Re: BUG #6457: Regexp not processing word (with special characters
on ends) correctly (UTF-8) Albert Cieszkowski <albert.cieszkowski@cc.com.pl>
albert.cieszkowski@cc.com.pl writes: > peimp=> select 'ÅwinoujÅcie' ~* '\mÅwinoujÅcie\M'; > ?column? > ---------- > f > (1 row) 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. (It would be nice if there were a more efficient way to get this information than laboriously iterating through all the possible character codes. It doesn't look like we're even trying to cache the results, ick.) regards, tom lane
В списке pgsql-bugs по дате отправления
От: calestyo@scientia.net
Дата: