bug-coreutils
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

bug#79118: CI test failures


From: Collin Funk
Subject: bug#79118: CI test failures
Date: Mon, 28 Jul 2025 16:12:32 -0700
User-agent: Gnus/5.13 (Gnus v5.13)

Collin Funk <collin.funk1@gmail.com> 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





reply via email to

[Prev in Thread] Current Thread [Next in Thread]