https://gcc.gnu.org/bugzilla/show_bug.cgi?id=109857

--- Comment #4 from Jonathan Wakely <redi at gcc dot gnu.org> ---
(In reply to Jonathan Wakely from comment #0)
> We should also consider ignoring the system tzdata files if the bundled copy
> (currently 2023c) is newer.

This would be bad in the Debian case, because they backport changes to the DST
rules from the upstream IANA database, but for Debian stable don't change the
"version" string in tzdata.zi. This means libstdc++ will always think the
system tzdata.zi version "2021a" is older than the bundled "2023c", even though
the system file might actually have newer rules backported from upstream. If we
automatically used the bundled 2023c data we would actually be using older
data.

So let's just go with this:

> Or at least try using the bundled one if the
> parsing the system file fails, as in this case.

i.e. only use the bundled one as a fallback if parsing the on-disk file fails.

Reply via email to