On Sat, Apr 19, 2025 at 12:30:57PM -0700, Jeff Davis wrote:
> On Thu, 2025-04-17 at 06:58 -0700, Noah Misch wrote:
> > Should initcap_wbnext() pass in a locale-dependent "bool posix"
> > argument like
> > the others calls the commit changed?
>
> Yes, I believe you are correct. Patch and tests attached.
That patch is ready for commit.
> > Long-term, pg_u_isword() should have a "bool posix" argument.
> > Currently, only
> > tests call that function. If it got a non-test caller,
> > https://www.unicode.org/reports/tr18/#word would have pg_u_isword()
> > follow the
> > choice of posix compatibility like pg_u_isalnum() does.
>
> I based those functions on:
>
> https://www.unicode.org/reports/tr18/#Compatibility_Properties
>
> and the "word" class does not have a POSIX variant.
I missed that distinction. I withdraw this part.