]> granicus.if.org Git - postgresql/commit
Remove wchar.c Asserts that were stricter than the main code
authorBruce Momjian <bruce@momjian.us>
Mon, 24 Mar 2014 19:59:38 +0000 (15:59 -0400)
committerBruce Momjian <bruce@momjian.us>
Mon, 24 Mar 2014 19:59:38 +0000 (15:59 -0400)
commit5db55c6bbca28b8be4d68d2fa0e22465cfe8e755
tree6aca0d629f94219eb40da989f441f61214fd5038
parent0b5c0f3bc78d72b753387f84b9188709af3ef8fb
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
doc/src/sgml/libpq.sgml
src/backend/utils/mb/wchar.c