> Date: Sun, 11 Oct 2026 11:13:40 -0700 > Cc: Gnulib bugs <[email protected]>, Emacs Development <[email protected]> > From: Paul Eggert <[email protected]> > > On 2026-10-11 03:56, Eli Zaretskii wrote: > > Let me rephrase: I don't want to ask Paul to do this, and I'd like to > > avoid the need to run gnulib-tool myself. Would you (or someone else > > on the Gnulib team) please kindly tell how to produce the effect of > > "--avoid=localtime" without actually running the script? > > Yes: install the attached patch. Quite possibly it will work as-is; perhaps > we'll need to fiddle with it a bit. Either way, it's heading in the right > direction. > > This patch follows Bruno's suggestion of avoiding the Gnulib localtime module > because Emacs doesn't need it. It goes further by also avoiding Gnulib's > tzsanitize module, as I assume Emacs doesn't need that either. If my > assumption is incorrect I can create another patch that avoids localtime but > not tzsanitize.
Yes, let's do the latter, please. The tzsanitize module is beneficial to Emacs on MS-Windows, since I've seen enough packages and Lisp programs which set TZ to the likes of Europe/Amsterdam or EST5EDT,M3.2.0/2,M11.1.0/2. That's why I added the call to tzsanitize in the w32 wrapper for the libc 'localtime'. > Although one can incorporate Gnulib code without running gnulib-tool, it's > such an error-prone process that I don't recommend it. I generated the > attached patch by running Emacs's admin/merge-gnulib script, which ran > gnulib-tool for me. Thanks.
