The MSVC and MinGW C runtimes do not provide strptime(), so the strptime() builtin was unavailable on Windows. Port NetBSD's lib/libc/time/strptime.c (rev 1.67) and compile it into the Windows builds. The BSD 2-clause notice from the original is preserved in the file. Windows-specific adjustments: English-only locale tables, the fromzone()/tzalloc() path is stubbed out (no IANA tzfile loader on Windows), and tm_gmtoff / tm_zone stores are elided.
Also call tzset() before mktime() in f_strptime() so changes to $TZ are honored.
Skip the POSIX DST TZ assertion in Test_strptime() on MS-Windows since the CRT tzset() does not parse POSIX TZ strings with DST rules.
https://github.com/vim/vim/pull/20054
(7 files)
—
Reply to this email directly, view it on GitHub, or unsubscribe.
Triage notifications, keep track of coding agent tasks and review pull requests on the go with GitHub Mobile for iOS and Android. Download it today!
You are receiving this because you are subscribed to this thread.![]()
@mattn pushed 1 commit.
—
View it on GitHub or unsubscribe.
Triage notifications, keep track of coding agent tasks and review pull requests on the go with GitHub Mobile for iOS and Android. Download it today!
You are receiving this because you are subscribed to this thread.![]()