Re: [PATCH 1/2] rpmatch.3: remove first-character-only FUD

Alejandro Colomar (man-pages)
2021-09-22T09:12:38Z

Hi наб,

On 9/22/21 1:25 AM, Alejandro Colomar (man-pages) wrote:

> Since the C locale is the most important one, IMHO, and it is as
> problematic as the BUGS section mentions, I think we should keep the
> warning, and maybe add a mention that it depends on the locale.  What do
> you think?

I mean, I agree with you that rpmatch(3) is **the correct** way of
checking for a yes/no user response, but the programmer should also be
aware of locale's (and especially the C locale) problems, so that he can
also do some extra work and try to fix the locale he expects to use.

However, I also see it good if we move this bug to where the problem
really is (instead of here, which is where the problem is noticed),
which would be one of the locale pages (nl_langinfo(3) for example, as
you said).

Thanks,

Alex

--
Alejandro Colomar
Linux man-pages comaintainer; https://www.kernel.org/doc/man-pages/