bug#79118: CI test failures

Collin Funk <[email protected]>
Newsgroups gmane.comp.gnu.core-utils.bugs
Message-ID <[email protected]>
Collin Funk <[email protected]> writes:

>> + case $(date --iso-8601=hours) in
>> ++ date --iso-8601=hours
>> + fail=1
>> + case $(date --rfc-3339=date) in
>> ++ date --rfc-3339=date
>> + fail=1
>
> My guess is that `date ...` or a separate assignment will be needed
> here. Will experiment later.

Scratch that, I read the logs wrong.

The issue is that they return the non-C locale date. The code we use
when --iso-8601 or --rfc-3339 is in use is the following:

    if (use_c_locale)
      setlocale (LC_TIME, "C");

    bool ok = show_date (format, when, tz);

I wonder if the issue is the cached_localename in
gl_locale_name_posix_unsafe of Gnulib's lib/localename-unsafe.c. Maybe
it causes strftime to read the old locale when setlocale (LC_TIME, "C")
was called.

Hopefully I can debug this on the cfarm machine.

Collin
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.