Fix machine-dependent crash in sqlchar_to_unicode(). Get rid of

Tom Lane <tgl@sss.pgh.pa.us>

Commit: e9da20ab4d2f8c34130e624c7c78dffaf3119af4
Author: Tom Lane <tgl@sss.pgh.pa.us>
Date: 2006-12-24T00:57:48Z
Releases: 8.3.0
Fix machine-dependent crash in sqlchar_to_unicode().  Get rid of
bletcherous and unsafe manipulation of global encoding setting.
Clean up libxml reporting mechanism a bit (it still looks like a
dangling-pointer crash waiting to happen, though, not to mention
being far less than sane from a localization standpoint).

Files

PathChange+/−
src/backend/utils/adt/xml.c modified +18 −20
src/backend/utils/mb/mbutils.c modified +9 −1
src/include/mb/pg_wchar.h modified +3 −1