[Bug libstdc++/108211] std::chrono::current_zone() fails if zone only has one component
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=108211 Jonathan Wakely changed: What|Removed |Added Resolution|--- |FIXED Status|ASSIGNED|RESOLVED --- Comment #3 from Jonathan Wakely --- Fixed
[Bug libstdc++/108211] std::chrono::current_zone() fails if zone only has one component
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=108211 --- Comment #2 from CVS Commits --- The master branch has been updated by Jonathan Wakely : https://gcc.gnu.org/g:56be1970765b6302de19977790a537d6feaaa34b commit r13-5004-g56be1970765b6302de19977790a537d6feaaa34b Author: Jonathan Wakely Date: Wed Jan 4 20:49:59 2023 + libstdc++: Support single components in name of chrono::current_zone() [PR108211] We currently only handle the case where /etc/localtime is a symlink to a path like ".../Etc/UTC" and fail for ".../UTC". This makes both work. libstdc++-v3/ChangeLog: PR libstdc++/108211 * src/c++20/tzdb.cc (chrono::current_zone()): Check for zone using only last component of the name.
[Bug libstdc++/108211] std::chrono::current_zone() fails if zone only has one component
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=108211 --- Comment #1 from Jonathan Wakely --- The obvious solution is to try locate_zone(dir/filename) and if that fails try locate_zone(filename).
[Bug libstdc++/108211] std::chrono::current_zone() fails if zone only has one component
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=108211 Jonathan Wakely changed: What|Removed |Added Assignee|unassigned at gcc dot gnu.org |redi at gcc dot gnu.org Target Milestone|--- |13.0 Last reconfirmed||2022-12-23 Status|UNCONFIRMED |ASSIGNED Ever confirmed|0 |1