Landing: cc195f7b11a4

Project / Subsystem

gcc / gcc/libstdc++

Date

2026-06-06

Author

Jonathan Wakely

Commit

cc195f7b11a4061ff8b0261372faadbef22791ee

Source

github

Perf win

No

Breaking

No

All attributes

project
gcc
subsystem
gcc/libstdc++
patch_id
commit_hash
cc195f7b11a4061ff8b0261372faadbef22791ee
source_type
github
headline
Use realpath for /etc/localtime symlink resolution
tldr
libstdc++ now uses realpath to resolve /etc/localtime symlinks, correctly identifying time zone names.
author
Jonathan Wakely
outcome
committed
performance_win
false
breaking_change
false
series_id
series_parts
[]
tags
  • libstdc++
  • chrono
  • timezone
discussion_id_link
bugzilla_pr
date
2026-06-06T00:00:00.000Z

Libstdc++‘s timezone database now uses realpath to resolve the /etc/localtime symlink, addressing an issue where chained symlinks could prevent correct timezone identification. This change ensures that even complex symlink configurations correctly resolve to the underlying timezone file, allowing chrono::current_zone() to function reliably. The previous readlink-based approach could fail if /etc/localtime pointed to another symlink.