Re: more C99 cleanup
Peter Eisentraut <peter@eisentraut.org>
From: Peter Eisentraut <peter@eisentraut.org>
To: Tom Lane <tgl@sss.pgh.pa.us>
Cc: pgsql-hackers <pgsql-hackers@postgresql.org>
Date: 2025-11-28T07:40:50Z
Lists: pgsql-hackers
On 21.11.25 16:35, Tom Lane wrote:
> * In 0003, we can't be very sure what "isblank((unsigned char) c)"
> will do with non-ASCII input data, except that it could very
> easily do insane things with fragments of a multibyte character.
> I recommend keeping pg_isblank but redefining it along the lines of
>
> bool
> pg_isblank(unsigned char c)
> {
> return (!IS_HIGHBIT_SET(c) && isblank(c));
> }
>
> to ensure the previous treatment of non-ASCII data.
> (It could be made static in hba.c, perhaps)
Ok, done that way.
Commits
-
Update comment related to C99
- 376c649634bb 19 (unreleased) landed
-
Fix pg_isblank()
- 8b3e2c622a85 19 (unreleased) landed
-
Replace internal C function pg_hypot() by standard hypot()
- 8fe4aef8297b 19 (unreleased) landed
-
Remove obsolete comment
- c581c9a7ac2a 19 (unreleased) landed
-
Report timezone offset in pg_dump/pg_dumpall
- ad5d46a4494b 9.5.0 cited