]> git.eshelyaron.com Git - emacs.git/commit
Assume setlocale exists
authorPaul Eggert <eggert@cs.ucla.edu>
Sat, 29 Jun 2024 23:36:34 +0000 (00:36 +0100)
committerEshel Yaron <me@eshelyaron.com>
Mon, 1 Jul 2024 07:49:33 +0000 (09:49 +0200)
commit5c848d3759ea6b9e70668a7aba7514078cfda282
treea01fc91a1858778c69151b5f6ca07c2549fc39da
parent3307df444410797b97f5026424a7e6cec18de07c
Assume setlocale exists

Like locale.h, it was standardized by C89, is universally
available now, and some code already assumes it.
* configure.ac: Do not check for setlocale.
* src/emacs.c (setlocale) [!HAVE_SETLOCALE]: Remove.
(fixup_locale, synchronize_locale, Vprevious_system_time_locale)
(synchronize_system_time_locale): Define even if !HAVE_SETLOCALE.
* src/sysdep.c (emacs_setlocale): Simplify by assuming HAVE_SETLOCALE.

(cherry picked from commit 69374fbe827b83c49eff084de8635220bd6d3ccf)
configure.ac
src/emacs.c
src/lisp.h
src/sysdep.c