From: | Andrew Dunstan <andrew(at)dunslane(dot)net> |
---|---|
To: | pgsql-committers(at)postgresql(dot)org |
Subject: | pgsql: Force strings passed to and from plperl to be in UTF8 encoding. |
Date: | 2011-02-06 22:31:13 |
Message-ID: | E1PmD8T-0003YF-Fv@gemulon.postgresql.org |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-committers pgsql-hackers |
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(-)
From | Date | Subject | |
---|---|---|---|
Next Message | Bruce Momjian | 2011-02-06 23:44:46 | pgsql: remove tags. |
Previous Message | User Fxjr | 2011-02-06 21:06:05 | npgsql - Npgsql2: Forget to add mail reference for last commit: |
From | Date | Subject | |
---|---|---|---|
Next Message | Bruce Momjian | 2011-02-06 23:44:23 | Re: little mistakes in HS/SR |
Previous Message | Simon Riggs | 2011-02-06 22:18:58 | Re: multiple -f support |