Fix encoding handling in xml binary input function. If the XML header didn't

Heikki Linnakangas <heikki.linnakangas@iki.fi>

Commit: 691efa1500fe77fd0547bf0d1f019d250937e634
Author: Heikki Linnakangas <heikki.linnakangas@iki.fi>
Date: 2009-09-04T10:49:50Z
Releases: 8.3.9
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.

Files

PathChange+/−
src/backend/utils/adt/xml.c modified +21 −14