Remove wchar.c Asserts that were stricter than the main code

Bruce Momjian <bruce@momjian.us>

Commit: 5db55c6bbca28b8be4d68d2fa0e22465cfe8e755
Author: Bruce Momjian <bruce@momjian.us>
Date: 2014-03-24T19:59:38Z
Releases: 9.4.0
Remove wchar.c Asserts that were stricter than the main code

Assert errors were thrown for functions being passed invalid encodings,
while the main code handled it just fine.

Also document that libpq's PQclientEncoding() returns -1 for an encoding
lookup failure.

Per report from Peter Geoghegan

Files

PathChange+/−
doc/src/sgml/libpq.sgml modified +2 −1
src/backend/utils/mb/wchar.c modified +5 −14