Re: [BUGS] process crash when a plpython function returns unicode

2005-06-15 Thread Michael Fuhr
On Wed, Jun 15, 2005 at 02:29:27PM +0200, Zac wrote: > if you define a plpythonu function that returns a unicode python string > the server process crashes calling that function. The crash happens if the Unicode string has the high bit set. For example, u'\x7f' doesn't cause a crash, but u'\x80

[BUGS] process crash when a plpython function returns unicode

2005-06-15 Thread Zac
Hi, I found this bug: if you define a plpythonu function that returns a unicode python string the server process crashes calling that function. The example below refers to a PostgreSQL 8.1devel installation downloaded today from nightly snapshot but I found the same problem on PostgreSQL 8.0.