pgsql: > Here's a patch I added against plperl, originally against

From: momjian(at)svr1(dot)postgresql(dot)org (Bruce Momjian)
To: pgsql-committers(at)postgresql(dot)org
Subject: pgsql: > Here's a patch I added against plperl, originally against
Date: 2005-06-15 00:35:16
Message-ID: 20050615003516.93643528AE@svr1.postgresql.org
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-committers

Log Message:
-----------
> Here's a patch I added against plperl, originally against beta5, now
> against rc1. It simply checks with GetDatabaseEncoding() if the current
> database is in UTF-8, and if so, sets the UTF-8 flag on the arguments
> that are passed to perl. This means that it isn't necessary to
> utf8::upgrade() every string, as perl has no way of knowing offhand
> that a string is UTF-8 -- but postgres does, because the database
> encoding is specified, so it makes sense to turn the flag on. You
> should also be able to properly manipulate UTF-8 strings now from
> plperl as opposed to plperlu, because otherwise you'd have to use
> encoding 'utf8' which was not allowed. It could also eliminate some
> unexpected bugs if you assume that perl knows the string is unicode.
It
> is enabled only for perl 5.6 and higher, so earlier versions will not
> be affected.
>
> I have been assured by crab that the patch is quite harmless and will
> not break anything. It would be great to see it in 8 final! :-)

David Kamholz

Modified Files:
--------------
pgsql/src/pl/plperl:
plperl.c (r1.76 -> r1.77)
(http://developer.postgresql.org/cvsweb.cgi/pgsql/src/pl/plperl/plperl.c.diff?r1=1.76&r2=1.77)

Browse pgsql-committers by date

  From Date Subject
Next Message Christopher Kings-Lynne 2005-06-15 01:25:39 Re: [COMMITTERS] pgsql: Add BETWEEN SYMMETRIC.
Previous Message Bruce Momjian 2005-06-15 00:34:13 pgsql: This patch makes it possible to use the full set of timezones