[Bug 2062522] Re: std::chrono::locate_zone("Asia/Chungking") fails
Steve Langasek
2062522 at bugs.launchpad.net
Tue Apr 30 20:44:53 UTC 2024
Hello Matthias, or anyone else affected,
Accepted tzdata into noble-proposed. The package will build now and be
available at https://launchpad.net/ubuntu/+source/tzdata/2024a-3ubuntu1
in a few hours, and then in the -proposed repository.
Please help us by testing this new package. See
https://wiki.ubuntu.com/Testing/EnableProposed for documentation on how
to enable and use -proposed. Your feedback will aid us getting this
update out to other Ubuntu users.
If this package fixes the bug for you, please add a comment to this bug,
mentioning the version of the package you tested, what testing has been
performed on the package and change the tag from verification-needed-
noble to verification-done-noble. If it does not fix the bug for you,
please add a comment stating that, and change the tag to verification-
failed-noble. In either case, without details of your testing we will
not be able to proceed.
Further information regarding the verification process can be found at
https://wiki.ubuntu.com/QATeam/PerformingSRUVerification . Thank you in
advance for helping!
N.B. The updated package will be released to -updates after the bug(s)
fixed by this package have been verified and the package has been in
-proposed for a minimum of 7 days.
** Changed in: tzdata (Ubuntu Noble)
Status: New => Fix Committed
** Tags added: verification-needed verification-needed-noble
--
You received this bug notification because you are a member of Ubuntu
Foundations Bugs, which is subscribed to tzdata in Ubuntu.
https://bugs.launchpad.net/bugs/2062522
Title:
std::chrono::locate_zone("Asia/Chungking") fails
Status in glibc package in Ubuntu:
New
Status in tzdata package in Ubuntu:
Fix Committed
Status in tzdata source package in Noble:
Fix Committed
Bug description:
forwarded from
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=114770
```
#include <chrono>
int main()
{
(void) std::chrono::locate_zone("Asia/Chungking");
}
```
With the latest tzdata (version 2024a-2) on Debian Sid this fails:
terminate called after throwing an instance of 'std::runtime_error'
what(): tzdb: cannot locate zone: Asia/Chungking
Aborted (core dumped)
The problem is a Debian patch that enables link chaining, so that one link can have another link as its target:
https://sources.debian.org/patches/tzdata/2024a-2/ziguard.awk-Move-link-to-link-feature-from-vanguard-to-ma.patch/
This feature was added to tzdata in 2022, but isn't compatible with
the expectations of the C++20 standard. When chrono::locate_zone finds
a link, it expects its target to be a zone, not another link.
To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/glibc/+bug/2062522/+subscriptions
More information about the foundations-bugs
mailing list