Re: [HACKERS] plperl and regexps with accented characters - incompatible?

Поиск
Список
Период
Сортировка
От Greg Sabino Mullane
Тема Re: [HACKERS] plperl and regexps with accented characters - incompatible?
Дата
Msg-id 14996936d2b5e8add6e180348fb2c490@biglumber.com
обсуждение исходный текст
Ответ на Re: [HACKERS] plperl and regexps with accented characters - incompatible?  (Andrew Dunstan <andrew@dunslane.net>)
Ответы Re: [HACKERS] plperl and regexps with accented characters - incompatible?  (Andrew Dunstan <andrew@dunslane.net>)
Список pgsql-general
-----BEGIN PGP SIGNED MESSAGE-----
Hash: RIPEMD160


> Ugh, in testing I see some nastiness here without any explicit
> require. It looks like there's an implicit require if the text
> contains certain chars.

Exactly.

> Looks like it's going to be very hard, unless someone has some
> brilliant insight I'm missing :-(

The only way I see around it is to do:

$PLContainer->permit('require');
...
$PLContainer->reval('use utf8;');
...
$PLContainer->deny('require');"

Not ideal. Part of me says we do this because something like //i
shouldn't suddenly fail just because you added an accented
character. The other part of me says to just have people use plperlu.
At the very least, we should probably mention it in the docs as
a gotcha.

- --
Greg Sabino Mullane greg@turnstep.com
End Point Corporation
PGP Key: 0x14964AC8 200711132155
http://biglumber.com/x/web?pk=2529DF6AB8F79407E94445B4BC9B906714964AC8

-----BEGIN PGP SIGNATURE-----

iD8DBQFHOmQLvJuQZxSWSsgRA6bJAKDX9tN6ridD6aP8PywuUOUKRnHFvQCeJizW
Rcq+43grmuckX1I4Rm75eTU=
=3cmn
-----END PGP SIGNATURE-----



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

Предыдущее
От: "Merlin Moncure"
Дата:
Сообщение: Re: Insert statements really slow
Следующее
От: Andrew Dunstan
Дата:
Сообщение: Re: [HACKERS] plperl and regexps with accented characters - incompatible?