]> git.eshelyaron.com Git - emacs.git/commit
Simplify locale setup
authorPaul Eggert <eggert@cs.ucla.edu>
Fri, 24 Jan 2020 07:06:27 +0000 (23:06 -0800)
committerPaul Eggert <eggert@cs.ucla.edu>
Fri, 24 Jan 2020 07:20:01 +0000 (23:20 -0800)
commit75c1f936fcff109e19be4abdcddd9fa2204fabca
tree470a221864ad85f3f7cdb133036c47ec6b239ae0
parent04ca1a1e080df1801f5ad8e9bc7d4cf68661ca5f
Simplify locale setup

Stop exporting Vprevious_system_time_locale and
Vprevious_system_messages_locale to Elisp.  I did that export by
mistake in 1999, and the Elisp variables have never been used.
Simplifying this cruft should make it easier to fix Bug#39248.
* etc/NEWS: Mention this.
* src/emacs.c (main): Simplify locale initialization.
(synchronize_locale): Simplify.
(Vprevious_system_time_locale, Vprevious_system_messages_locale):
Now static variables not visible to Lisp, and defined only if
HAVE_SETLOCALE.
(Vprevious_system_messages_locale): Define only if LC_MESSAGES.
etc/NEWS
src/emacs.c