f57584ac73f870dee1a3bd48d5ad6d7d1e7e6ea4 — Eshel Yaron a month ago 799e1ae
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
1 files changed, 5 insertions(+), 0 deletions(-)

M sweeprolog.el
M sweeprolog.el => sweeprolog.el +5 -0
@@ 253,6 253,11 @@ inserted to the input history in `sweeprolog-top-level-mode' buffers."
         ;; SWI-Prolog does its own locale initialization, but Emacs's
         ;; Elisp reader only works with certain values of LC_NUMERIC,
         ;; so we need to reset it after loading Prolog.  This is
         ;; basically emulating fixup_locale from src/emacs.c:
         "-g" "setlocale(numeric, _, 'C')"