From: | Evan Jones <evan(dot)jones(at)datadoghq(dot)com> |
---|---|
To: | Michael Paquier <michael(at)paquier(dot)xyz> |
Cc: | pgsql-hackers(at)postgresql(dot)org |
Subject: | Re: [PATCH] hstore: Fix parsing on Mac OS X: isspace() is locale specific |
Date: | 2023-06-06 14:16:09 |
Message-ID: | CA+HWA9bET27MxdO4VOgK==w4P_G9H0aStCq+C_DP4YnarAw87g@mail.gmail.com |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-hackers |
On Tue, Jun 6, 2023 at 7:37 AM Michael Paquier <michael(at)paquier(dot)xyz> wrote:
> Indeed. It looks like 9ae2661 missed this spot.
>
I didn't think to look for a previous fix, thanks for finding this commit
id!
I did a quick look at the places found with "git grep isspace" yesterday. I
agree with the comment from commit 9ae2661: "I've left alone isspace()
calls in places that aren't really expecting any non-ASCII input
characters, such as float8in()." There are a number of other calls where I
think it would likely be safe, and possibly even a good idea, to replace
isspace() with scanner_isspace(). However, I couldn't find any where I
could cause a bug like the one I hit in hstore parsing.
Original mailing list post for commit 9ae2661 in case it is helpful for
others: https://www.postgresql.org/message-id/10129.1495302480@sss.pgh.pa.us
From | Date | Subject | |
---|---|---|---|
Next Message | Evan Jones | 2023-06-06 14:24:45 | Re: [PATCH] pg_regress.c: Fix "make check" on Mac OS X: Pass DYLD_LIBRARY_PATH |
Previous Message | Robert Haas | 2023-06-06 14:13:47 | Re: Let's make PostgreSQL multi-threaded |