pgsql: Detect setlocale(LC_CTYPE, NULL) clobbering previous return valu

From: Noah Misch <noah(at)leadboat(dot)com>
To: pgsql-committers(at)postgresql(dot)org
Subject: pgsql: Detect setlocale(LC_CTYPE, NULL) clobbering previous return valu
Date: 2015-06-17 12:15:03
Message-ID: E1Z5CFD-0001Lh-1x@gemulon.postgresql.org
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-committers

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.

Branch
------
master

Details
-------
http://git.postgresql.org/pg/commitdiff/b76e76be460a240e99c33f6fb470dd1d5fe01a2a

Modified Files
--------------
src/backend/utils/adt/pg_locale.c | 14 ++++++++++++++
1 file changed, 14 insertions(+)

Browse pgsql-committers by date

  From Date Subject
Next Message Robert Haas 2015-06-19 14:52:38 pgsql: Change TAP test framework to not rely on having a chmod executab
Previous Message Andrew Dunstan 2015-06-16 03:25:07 pgsql: Fix comment in fmgr.h to refer to actual function used.