Back-patch addition of pg_wchar-to-multibyte conversion functionality.

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

Commit: ed45a5373029f2ff08ce76cf3807499afe3873ee
Author: Tom Lane <tgl@sss.pgh.pa.us>
Date: 2012-07-10T20:53:27Z
Releases: 9.1.5
Back-patch addition of pg_wchar-to-multibyte conversion functionality.

Back-patch of commits 72dd6291f216440f6bb61a8733729a37c7e3b2d2,
f6a05fd973a102f7e66c491d3f854864b8d24844, and
60e9c224a197aa37abb1aa3aefa3aad42da61f7f.

This is needed to support fixing the regex prefix extraction bug in
back branches.

Files

PathChange+/−
src/backend/utils/mb/mbutils.c modified +22 −0
src/backend/utils/mb/wchar.c modified +210 −44
src/include/mb/pg_wchar.h modified +27 −5