]> Savannah Git Hosting - gnulib.git/commit
nstrftime: remove dependency on hard-locale
authorPaul Eggert <eggert@cs.ucla.edu>
Tue, 4 Jun 2024 05:00:59 +0000 (22:00 -0700)
committerPaul Eggert <eggert@cs.ucla.edu>
Tue, 4 Jun 2024 05:04:45 +0000 (22:04 -0700)
commit66de6c8f05c0207c16581f2a5f1c2796868ba51b
tree6f36b9b9dedaf383ed1ff69bf849b33a117018ab
parent6457d2c190f47e2288c08f6a5e0dba412ff62855
nstrftime: remove dependency on hard-locale

GNU Emacs would rather keep dependencies to a minimum,
and hard-locale brings in some other stuff.
* lib/strftime.c: Include locale.h only if (USE_C_LOCALE &&
HAVE_STRFTIME_L) || ((defined __NetBSD__ || defined __sun) &&
REQUIRE_GNUISH_STRFTIME_AM_PM). Do not include hard-locale.h.
(libc_hidden_def): On native MS-Windows, use the C locale %c
format regardless of language.  I hope that’s good enough.
If not, let’s try to think of a way of solving the problem
that doesn’t require using hard_locale.
* modules/nstrftime (Depends-on): Remove hard-locale.
* modules/nstrftime-tests (test_nstrftime_LDADD):
Remove $(HARD_LOCALE_LIB).
* tests/test-nstrftime.h (locales_test):
Add a test that I hope works on French MS-Windows.
ChangeLog
lib/strftime.c
modules/nstrftime
modules/nstrftime-tests
tests/test-nstrftime.h