Fix machine-dependent crash in sqlchar_to_unicode(). Get rid of
Tom Lane <tgl@sss.pgh.pa.us>
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
| Path | Change | +/− |
|---|---|---|
| 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 |