Thread: pgsql: Fix encoding handling in xml binary input function.

pgsql: Fix encoding handling in xml binary input function.

From
heikki@postgresql.org (Heikki Linnakangas)
Date:
Log Message:
-----------
Fix encoding handling in xml binary input function. If the XML header didn't
specify an encoding explicitly, we used to treat it as being in database
encoding when we parsed it, but then perform a UTF-8 -> database encoding
conversion on it, which was completely bogus. It's now consistently treated as
UTF-8.

Tags:
----
REL8_4_STABLE

Modified Files:
--------------
    pgsql/src/backend/utils/adt:
        xml.c (r1.92 -> r1.92.2.1)
        (http://anoncvs.postgresql.org/cvsweb.cgi/pgsql/src/backend/utils/adt/xml.c?r1=1.92&r2=1.92.2.1)