Re: [PATCH 1/3] test-ctype: test isascii

Started by Junio C Hamano on Feb 13, 2023

open the first message on its own page

Message details and related content
René Scharfe [off-list ref] writes:
quoted
Yes, that does make sense but it is orthogonal to what sane_ctype
wants to address, I would think.
Currently we can only use one or the other variant because our sane
versions use the same names as the locale-aware ones.  Full overlap
instead of orthogonality.
Ah, that is true but slightly complicated.  As long as the caller of
walks the string byte-by-byte and calls ispunct() in each iteration,
I do not think any "locale aware ispunct()" do much good to us.

Once callers are made locale aware, I am not sure they would still
want to call the isfoo() functions that have been know to be very
much byte-oriented.

Thanks.

Keyboard shortcuts
hback out one level
jnext message in thread / next series-diff position
kprevious message in thread / previous series-diff position
ldrill in
Escclose help / fold thread tree
?toggle this help