Re: C11: should we use char32_t for unicode code points?

Jeff Davis <pgsql@j-davis.com>

From: Jeff Davis <pgsql@j-davis.com>
To: Peter Eisentraut <peter@eisentraut.org>, Thomas Munro <thomas.munro@gmail.com>
Cc: Tatsuo Ishii <ishii@postgresql.org>, pgsql-hackers@postgresql.org
Date: 2025-10-28T20:03:17Z
Lists: pgsql-hackers

Attachments

On Tue, 2025-10-28 at 19:45 +0100, Peter Eisentraut wrote:
> This could be improved a bit. The reason for some of these
> conditionals 
> is not clear.  Like, what does __cplusplus have to do with this?  I 
> think it would be more correct to write a configure/meson check for
> the 
> actual types rather than depend indirectly on a header check.

Fixed, thank you.

> The checks for __STDC_UTF_16__ and __STDC_UTF_32__ can be removed, as
> was discussed elsewhere, since we don't use any standard library 
> functions that make use of these facts, and the need goes away with
> C23 
> anyway.

Removed.

I also made the pg_config.h.in changes and ran autoconf.

Regards,
	Jeff Davis