From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id 5906D385783F; Tue, 16 May 2023 11:59:22 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 5906D385783F DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1684238362; bh=IGJymB2u/+l5xEyxHES1UfliET0Z/FPLLaY3G5oHp1I=; h=From:To:Subject:Date:In-Reply-To:References:From; b=CJ4sJKNRO0QBC0ZflH5mcUgF+gPZZ65lHFtvrJni67LS7Ox1E+21q1KCYNnWG6TWz Tlh50o+95rJqv4cfiE0F3hfedaud/c2elLDWYy+BT1jD0D1KOBeOdL5NyIDz2e/IpR 8ycZ43yn0hIwPWIGPceDk6e89cQ4cA22Evs57Q6k= From: "redi at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug libstdc++/109857] Debian stable's tzdata 2021a has bad data that cannot be parsed by libstdc++ Date: Tue, 16 May 2023 11:59:22 +0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: libstdc++ X-Bugzilla-Version: 13.1.0 X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: redi at gcc dot gnu.org X-Bugzilla-Status: ASSIGNED X-Bugzilla-Resolution: X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: redi at gcc dot gnu.org X-Bugzilla-Target-Milestone: 13.2 X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 List-Id: https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D109857 --- Comment #5 from Jonathan Wakely --- (In reply to Jonathan Wakely from comment #4) > 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. Another consequence of the Debian stable policy is that a long-running C++ process will think it always has the latest tzdb, even if the on-disk tzdat= a.zi has actually been updated by apt-get. i.e. std::chrono::reload_tzdb() will never do anything. Maybe I should report this as a bug to Debian, and ask them to append some discriminator to the version string, like "2021a.1", "2021a.2" etc.=