Re: findutils 4.9.0: localeconv test failed on RISCV

Collin Funk <[email protected]>
Newsgroups gmane.comp.gnu.findutils.bugs
Message-ID <[email protected]>
Hi,

Bernhard Voelker <[email protected]> writes:

> There's been some char-related changes in the related gnulib files between
> findutils 4.9.0 (2022) and the new 4.10.0.
> Would you please test if that problem still exists there?

No harm in trying this. However, I feel like this might be a platform
bug. Yuqi can you please tell me what operating system / libc
implementation you encountered this on?

As far as the behavior goes, the test is correct. From POSIX
Issue 7 [1]:

    The members of the structure with type char * are pointers to
    strings, any of which (except decimal_point) can point to "", to
    indicate that the value is not available in the current locale or is
    of zero length. The members with type char are non-negative numbers,
    any of which can be {CHAR_MAX} to indicate that the value is not
    available in the current locale.

Collin

[1] https://pubs.opengroup.org/onlinepubs/9699919799.2018edition/
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.