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

--- Comment #8 from CVS Commits <cvs-commit at gcc dot gnu.org> ---
The master branch has been updated by Jonathan Wakely <r...@gcc.gnu.org>:

https://gcc.gnu.org/g:93e2bf51dedd0870b78b770b72e34b15a7a0d14a

commit r13-5385-g93e2bf51dedd0870b78b770b72e34b15a7a0d14a
Author: Jonathan Wakely <jwak...@redhat.com>
Date:   Thu Jan 26 09:26:35 2023 +0000

    libstdc++: Fix strings read from /etc/sysconfig/clock [PR108530]

    In r13-5339-ge00d5cafbe1a77 I made std::chrono::current_zone() look for
    DEFAULT_TIMEZONE in /etc/sysconfig/clock but that is the wrong variable.
    Old Suse systems use TIMEZONE to determine which zone /etc/localtime is
    a copy of, and old RHEL system use ZONE.

    libstdc++-v3/ChangeLog:

            PR libstdc++/108530
            * src/c++20/tzdb.cc (current_zone): Look for TIMEZONE or ZONE in
            /etc/sysconfig/clock, not DEFAULT_TIMEZONE.

Reply via email to