]> git.eshelyaron.com Git - sweep.git/commit
FIXED: workaround Emacs incompatibility with certain locales
authorEshel Yaron <me@eshelyaron.com>
Wed, 10 Apr 2024 17:34:53 +0000 (19:34 +0200)
committerEshel Yaron <me@eshelyaron.com>
Wed, 10 Apr 2024 17:34:53 +0000 (19:34 +0200)
commitf57584ac73f870dee1a3bd48d5ad6d7d1e7e6ea4
treec41165398f4009233b8eaec3258d98b498fd90c0
parent799e1aebfd280ed6d00fb1034a3fed60de21c8d7
FIXED: workaround Emacs incompatibility with certain locales

The Emacs Elisp reader only works with locales that have "." as their
decimal separator, but Prolog initialization sets up the locale
according to the environment variables.  Therefore we need to reset
the locale after initializing Prolog in case the environment
prescribes a locale with a different decimal separator, such as fr_FR.
See also https://github.com/SWI-Prolog/packages-sweep/issues/1
sweeprolog.el