pgsql: Fix unportable usage of <ctype.h> functions.

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: pgsql-committers(at)postgresql(dot)org
Subject: pgsql: Fix unportable usage of <ctype.h> functions.
Date: 2016-03-06 23:24:00
Message-ID: E1aci1o-0004gm-CK@gemulon.postgresql.org
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-committers

Fix unportable usage of <ctype.h> functions.

isdigit(), isspace(), etc are likely to give surprising results if passed a
signed char. We should always cast the argument to unsigned char to avoid
that. Error in commit d78a7d9c7fa3e9cd, found by buildfarm member gaur.

Branch
------
master

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

Modified Files
--------------
src/backend/tsearch/spell.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)

Browse pgsql-committers by date

  From Date Subject
Next Message Tom Lane 2016-03-07 00:21:26 pgsql: Fix not-terribly-safe coding in NIImportOOAffixes() and NIImport
Previous Message Artur Zakirov 2016-03-06 19:31:34 Re: pgsql: Improve support of Hunspell in ispell dictionary.