Open mgorny opened 3 months ago
Oh, there's another uncovered scenario: /etc/localtime
is also permitted not to exist at all.
FreeBSD also defaults to a non-symlink /etc/localtime in existing releases.
GCC falls back on reading /etc/timezone (for Debian and derivatives) and /var/db/zoneinfo (for FreeBSD). Whether that's sensible I don't know, but it's better than doing nothing.
When
/etc/localtime
is a file rather than a symlink, tzdb throws. This can be seen e.g. in the following libc++ tests:While systemd requires
/etc/localtime
to be a symlink, there's no such requirement for non-systemd systems, and at least fresh non-systemd Gentoo installs still default to that (I'm going to work on changing that but the point remains that non-symlink/etc/localtime
is still a valid scenario supported by glibc).