https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=282377

--- Comment #11 from Jan Beich <[email protected]> ---
Created attachment 265387
  --> https://bugs.freebsd.org/bugzilla/attachment.cgi?id=265387&action=edit
[incomplete] Enable tzdb in libc++

Not sure. Waiting for feedback from Clang/libc++ maintainer.

With the attached patch cppreference's example successfully compiles but
doesn't seem to work.

$ c++ -std=c++20 -fexperimental-library -o test_tzdb test_tzdb.cc
$ export TZ=UTC
$ ./test_tzdb
corrupt tzdb: expected a digit
$ truss ./test_tzdb |& fgrep -B5 "corrupt tzdb"
open("/usr/share/zoneinfo/tzdata.zi",O_RDONLY,0666) = 3 (0x3)
fstat(3,{ mode=-r--r--r-- ,inode=15587,size=107651,blksize=108032 }) = 0 (0x0)
read(3,"# version 2025b\n# redo posix_on"...,108032) = 107651 (0x1a483)
lseek(3,0x0,SEEK_CUR)                            = 107651 (0x1a483)
close(3)                                         = 0 (0x0)
corrupt tzdb: expected a digitwrite(2,"corrupt tzdb: expected a digit",30)     
 = 30 (0x1e)

-- 
You are receiving this mail because:
You are the assignee for the bug.

Reply via email to