aboutsummaryrefslogtreecommitdiff
path: root/src/backend/executor/nodeModifyTable.c
diff options
context:
space:
mode:
authorTom Lane <tgl@sss.pgh.pa.us>2015-09-29 10:52:22 -0400
committerTom Lane <tgl@sss.pgh.pa.us>2015-09-29 10:52:22 -0400
commitca6c2f863b0d8c1a986b9d1967e7b59e3fbf8321 (patch)
treeb11cc366afde0149fd956d2719cdec6e10229124 /src/backend/executor/nodeModifyTable.c
parent54499a14fcfc44adfc5354ae801a49c12776073b (diff)
downloadpostgresql-ca6c2f863b0d8c1a986b9d1967e7b59e3fbf8321.tar.gz
postgresql-ca6c2f863b0d8c1a986b9d1967e7b59e3fbf8321.zip
Fix plperl to handle non-ASCII error message texts correctly.
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 2dfa15de5). Back-patch to 9.1. The code is quite different in 9.0, and anyway it seems too risky to put something like this into 9.0's final minor release. Alex Hunsaker, with suggestions from Tim Bunce and Tom Lane
Diffstat (limited to 'src/backend/executor/nodeModifyTable.c')
0 files changed, 0 insertions, 0 deletions