pgsql: Fix unportable use of isprint(). - Mailing list pgsql-committers

From Tom Lane
Subject pgsql: Fix unportable use of isprint().
Date
Msg-id E1lRiAg-0003yg-Lu@gemulon.postgresql.org
Whole thread Raw
List pgsql-committers
Fix unportable use of isprint().

We must cast the arguments of <ctype.h> functions to unsigned
char to avoid problems where char is signed.

Speaking of which, considering that this *is* a <ctype.h> function,
it's rather remarkable that we aren't seeing more complaints about
not having included that header.

Per buildfarm.

Branch
------
master

Details
-------
https://git.postgresql.org/pg/commitdiff/9e20406dd847d0f8c1cbd803786c6d0ad33bcbdd

Modified Files
--------------
src/interfaces/libpq/fe-trace.c | 6 ++++--
1 file changed, 4 insertions(+), 2 deletions(-)


pgsql-committers by date:

Previous
From: Tom Lane
Date:
Subject: pgsql: Fix portability and safety issues in pqTraceFormatTimestamp.
Next
From: Alvaro Herrera
Date:
Subject: pgsql: Disable force_parallel_mode in libpq_pipeline