> From: Bruno Haible <[email protected]>
> Cc: Paul Eggert <[email protected]>
> Date: Sun, 11 Oct 2026 10:42:51 +0200
> 
> Eli Zaretskii wrote:
> > I hope the Gnulib folks will add something to Gnulib to allow
> > omitting the localtime module in a cleaner fashion.
> 
> Does '--avoid=localtime' not work?

Where should one do that? if during merge-gnulib, then we don't want
Paul (or anyone else from the Gnulib developers) to do something that
is specific to MS-Windows.  The other platforms don't have their
emulation of 'localtime', so they need to use what Gnulib does.

The selective (and relatively rare) disabling of Gnulib features and
modules is done on nt/gnulib-cfg.mk (where we omit some modules) and
nt/mingw-cfg.site (where we set some configure-time variables so as to
disable certain tests whose results we know in advance).  I hoped that
some combination of these techniques could work in this case as well.

> > Btw, why does tzsanitize call SetEnvironmentVariable only in the UCRT
> > build
> 
> Because in my testing with different versions of mingw+msvcrt, the
> SetEnvironmentVariable invocation is not needed: The 3 unit tests
> pass without it.
> 
> > leaving the MSVCRT build with an invalid TZ=$ setting?
> 
> That's not what the code does. The code creates a '$Z=something'
> string, thereby eliminating the 'TZ=something' setting.

Thanks for explaining this.

Reply via email to