]> granicus.if.org Git - postgresql/commit
Install a more robust solution for the problem of infinite error-processing
authorTom Lane <tgl@sss.pgh.pa.us>
Mon, 27 Oct 2008 19:37:48 +0000 (19:37 +0000)
committerTom Lane <tgl@sss.pgh.pa.us>
Mon, 27 Oct 2008 19:37:48 +0000 (19:37 +0000)
commitd24efb83eef6cb8e6917a25041aa3b815d9cb424
treea87ec4515d87b983a0aa26af0946b5aa09fb4bea
parentb1b21400357c45820a1a2d93398e76457ece39f9
Install a more robust solution for the problem of infinite error-processing
recursion when we are unable to convert a localized error message to the
client's encoding.  We've been over this ground before, but as reported by
Ibrar Ahmed, it still didn't work in the case of conversion failures for
the conversion-failure message itself :-(.  Fix by installing a "circuit
breaker" that disables attempts to localize this message once we get into
recursion trouble.

Patch all supported branches, because it is in fact broken in all of them;
though I had to add some missing translations to the older branches in
order to expose the failure in the particular test case I was using.
doc/src/sgml/sources.sgml
src/backend/nls.mk
src/backend/utils/error/elog.c
src/backend/utils/mb/wchar.c
src/include/utils/elog.h