[all-commits] [llvm/llvm-project] f79674: [libc++][TZDB] Improves system time zone detection...

Mark de Wever via All-commits all-commits at lists.llvm.org
Tue Feb 18 10:28:39 PST 2025


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: f796747a17941681c8f806cab4e10570b97b5089
      https://github.com/llvm/llvm-project/commit/f796747a17941681c8f806cab4e10570b97b5089
  Author: Mark de Wever <koraq at xs4all.nl>
  Date:   2025-02-18 (Tue, 18 Feb 2025)

  Changed paths:
    M libcxx/src/experimental/tzdb.cpp

  Log Message:
  -----------
  [libc++][TZDB] Improves system time zone detection. (#127339)

On some (Linux) systems /etc/localtime is not a symlink to the time
zone, but contains a copy of the binary time zone file. In these case
there usually is a file named /etc/timezone which contains the text for
the current time zone name.

Instead of throwing when /etc/localtime does not exist or is not a
symlink use this fallback.

Fixes: #105634

---------

Co-authored-by: Louis Dionne <ldionne.2 at gmail.com>



To unsubscribe from these emails, change your notification settings at https://github.com/llvm/llvm-project/settings/notifications


More information about the All-commits mailing list