pgsql: Fix unportable use of isprint().

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: pgsql-committers(at)lists(dot)postgresql(dot)org
Subject: pgsql: Fix unportable use of isprint().
Date: 2021-03-31 21:14:38
Message-ID: E1lRiAg-0003yg-Lu@gemulon.postgresql.org
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: 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(-)

Browse pgsql-committers by date

  From Date Subject
Next Message Alvaro Herrera 2021-03-31 21:46:36 pgsql: Disable force_parallel_mode in libpq_pipeline
Previous Message Tom Lane 2021-03-31 21:04:00 pgsql: Fix portability and safety issues in pqTraceFormatTimestamp.