Hi, On 2023-07-31 12:15:10 -0700, Andres Freund wrote: > It sure looks like freebsd 13.2 tcl is just busted. Notably it can't even > parse what it generates: > > echo 'puts [clock scan [clock format [clock seconds] -format "%Y/%m/%d"] > -format "%Y/%m/%d"]'|tclsh8.6 > > Which works on 13.1 (and other operating systems), without a problem. > > I used truss as a very basic way to see differences between 13.1 and 13.2 - > the big difference was .2 failing just after > access("/etc/localtime",F_OK) ERR#2 'No such file or > directory' > open("/etc/localtime",O_RDONLY,077) ERR#2 'No such file or > directory' > > whereas 13.1 also saw that, but then continued to > > issetugid() = 0 (0x0) > open("/usr/share/zoneinfo/UTC",O_RDONLY,00) = 3 (0x3) > fstat(3,{ mode=-r--r--r-- ,inode=351417,size=118,blksize=32768 }) = 0 (0x0) > ... > > which made me test specifying the timezone explicitly: > echo 'puts [clock scan [clock format [clock seconds] -format "%Y/%m/%d" > -timezone "UTC"] -format "%Y/%m/%d" -timezone "UTC"]'|tclsh8.6 > > Which, surprise, works. > > So does specifying the timezone via the TZ='UTC' environment variable. > > > I guess there could be a libc behaviour change or such around timezones? I do > see > https://www.freebsd.org/releases/13.2R/relnotes/ > "tzcode has been upgraded to version 2022g with improved timezone change > detection and reliability fixes."
One additional datapoint: If I configure the timezone with "tzsetup" (which creates /etc/localtime), the problem vanishes as well. Greetings, Andres Freund