]> granicus.if.org Git - postgresql/commit
plperl: Skip setting UTF8 flag when in SQL_ASCII encoding
authorAlvaro Herrera <alvherre@alvh.no-ip.org>
Mon, 9 Jul 2012 21:36:29 +0000 (17:36 -0400)
committerAlvaro Herrera <alvherre@alvh.no-ip.org>
Tue, 10 Jul 2012 19:15:16 +0000 (15:15 -0400)
commit379607c9e83dcfaccf6ccda47615e7f90c3c0b0c
tree6393bd89369244f7b6b652ef6b23307e7a78dc19
parentfc4a8a6d748ee213f49deb2d090febbdae3121c7
plperl: Skip setting UTF8 flag when in SQL_ASCII encoding

When in SQL_ASCII encoding, strings passed around are not necessarily
UTF8-safe.  We had already fixed this in some places, but it looks like
we missed some.

I had to backpatch Peter Eisentraut's a8b92b60 to 9.1 in order for this
patch to cherry-pick more cleanly.

Patch from Alex Hunsaker, tweaked by Kyotaro HORIGUCHI and myself.

Some desultory cleanup and comment addition by me, during patch review.

Per bug report from Christoph Berg in
20120209102116.GA14429@msgid.df7cb.de
src/pl/plperl/GNUmakefile
src/pl/plperl/Util.xs
src/pl/plperl/expected/plperl.out
src/pl/plperl/expected/plperl_lc.out [new file with mode: 0644]
src/pl/plperl/expected/plperl_lc_1.out [new file with mode: 0644]
src/pl/plperl/plperl_helpers.h
src/pl/plperl/sql/plperl.sql
src/pl/plperl/sql/plperl_lc.sql [new file with mode: 0644]