mirror of
https://github.com/postgres/postgres.git
synced 2026-04-15 22:10:45 -04:00
We were passing error message texts to croak() verbatim, which turns out
not to work if the text contains non-ASCII characters; Perl mangles their
encoding, as reported in bug #13638 from Michal Leinweber. To fix, convert
the text into a UTF8-encoded SV first.
It's hard to test this without risking failures in different database
encodings; but we can follow the lead of plpython, which is already
assuming that no-break space (U+00A0) has an equivalent in all encodings
we care about running the regression tests in (cf commit
|
||
|---|---|---|
| .. | ||
| expected | ||
| po | ||
| sql | ||
| .gitignore | ||
| GNUmakefile | ||
| nls.mk | ||
| plc_perlboot.pl | ||
| plc_trusted.pl | ||
| plperl--1.0.sql | ||
| plperl--unpackaged--1.0.sql | ||
| plperl.c | ||
| plperl.control | ||
| plperl.h | ||
| plperl_helpers.h | ||
| plperl_opmask.pl | ||
| plperlu--1.0.sql | ||
| plperlu--unpackaged--1.0.sql | ||
| plperlu.control | ||
| ppport.h | ||
| README | ||
| SPI.xs | ||
| text2macro.pl | ||
| Util.xs | ||
src/pl/plperl/README PL/Perl allows you to write PostgreSQL functions and procedures in Perl. To include PL/Perl in the build use './configure --with-perl'. To build from this directory use 'gmake all; gmake install'. libperl must have been built as a shared library, which is usually not the case in standard installations. Consult the PostgreSQL User's Guide and the INSTALL file in the top-level directory of the source distribution for more information.