pgsql: Force strings passed to and from plperl to be in UTF8 encoding. - Mailing list pgsql-committers

From Andrew Dunstan
Subject pgsql: Force strings passed to and from plperl to be in UTF8 encoding.
Date
Msg-id E1PmD8T-0003YF-Fv@gemulon.postgresql.org
Whole thread Raw
List pgsql-committers
Force strings passed to and from plperl to be in UTF8 encoding.

String are converted to UTF8 on the way into perl and to the
database encoding on the way back. This avoids a number of
observed anomalies, and ensures Perl a consistent view of the
world.

Some minor code cleanups are also accomplished.

Alex Hunsaker, reviewed by Andy Colson.

Branch
------
master

Details
-------
http://git.postgresql.org/gitweb?p=postgresql.git;a=commitdiff;h=50d89d422f9c68a52a6964e5468e8eb4f90b1d95

Modified Files
--------------
doc/src/sgml/plperl.sgml       |    8 ++
src/pl/plperl/SPI.xs           |   52 ++++++---
src/pl/plperl/Util.xs          |   66 +++++-----
src/pl/plperl/plperl.c         |  260 +++++++++++++++++++++++-----------------
src/pl/plperl/plperl_helpers.h |   69 +++++++++++
5 files changed, 295 insertions(+), 160 deletions(-)


pgsql-committers by date:

Previous
From: fxjr@pgfoundry.org (User Fxjr)
Date:
Subject: npgsql - Npgsql2: Forget to add mail reference for last commit:
Next
From: Bruce Momjian
Date:
Subject: pgsql: remove tags.