]> granicus.if.org Git - postgresql/commit
Detect setlocale(LC_CTYPE, NULL) clobbering previous return values.
authorNoah Misch <noah@leadboat.com>
Wed, 17 Jun 2015 12:13:33 +0000 (08:13 -0400)
committerNoah Misch <noah@leadboat.com>
Wed, 17 Jun 2015 12:13:33 +0000 (08:13 -0400)
commitb76e76be460a240e99c33f6fb470dd1d5fe01a2a
tree9bb2248ce31a0900553cb1c2b199f7dc4018ac52
parent41d798a139b5c94ad8ce10b192141b5bcc03dda3
Detect setlocale(LC_CTYPE, NULL) clobbering previous return values.

POSIX permits setlocale() calls to invalidate any previous setlocale()
return values.  Commit 5f538ad004aa00cf0881f179f0cde789aad4f47e
neglected to account for that.  In advance of fixing that bug, switch to
failing hard on affected configurations.  This is a planned temporary
commit to assay buildfarm-represented configurations.
src/backend/utils/adt/pg_locale.c