pgsql: Fix unportable usage of functions. - Mailing list pgsql-committers

From Tom Lane
Subject pgsql: Fix unportable usage of functions.
Date
Msg-id E1aci1o-0004gm-CK@gemulon.postgresql.org
Whole thread Raw
List 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(-)


pgsql-committers by date:

Previous
From: Artur Zakirov
Date:
Subject: Re: pgsql: Improve support of Hunspell in ispell dictionary.
Next
From: Tom Lane
Date:
Subject: pgsql: Fix not-terribly-safe coding in NIImportOOAffixes() and NIImport