OSDN Git Service

Fix Unicode support in PL/Python
authorPeter Eisentraut <peter_e@gmx.net>
Sun, 13 Sep 2009 22:07:06 +0000 (22:07 +0000)
committerPeter Eisentraut <peter_e@gmx.net>
Sun, 13 Sep 2009 22:07:06 +0000 (22:07 +0000)
commiteb62398f391eedee7953becb410bf3ae86b9872b
tree4771b5163f5b0543bba85a009950511add1e344c
parent6689ce3e6aba88682b9e7e276daa3c4c58e7df24
Fix Unicode support in PL/Python

Check calls of PyUnicode_AsEncodedString() for NULL return, probably
because the encoding name is not known.  Add special treatment for
SQL_ASCII, which Python definitely does not know.

Since using SQL_ASCII produces errors in the regression tests when
non-ASCII characters are involved, we have to put back various regression
test result variants.
src/pl/plpython/expected/README
src/pl/plpython/expected/plpython_unicode_2.out [new file with mode: 0644]
src/pl/plpython/expected/plpython_unicode_3.out [new file with mode: 0644]
src/pl/plpython/expected/plpython_unicode_5.out [new file with mode: 0644]
src/pl/plpython/plpython.c