From 85a0fbc712478fde56d052338a9e2fe2dc09dcf1 Mon Sep 17 00:00:00 2001 From: byte Date: Wed, 4 May 2022 21:04:37 +0200 Subject: [PATCH] Fix non-C locale issues in REPL --- CLI/Repl.cpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/CLI/Repl.cpp b/CLI/Repl.cpp index 4cb22346..cee92c21 100644 --- a/CLI/Repl.cpp +++ b/CLI/Repl.cpp @@ -435,6 +435,9 @@ static void runReplImpl(lua_State* L) { ic_set_default_completer(completeRepl, L); + // Reset the locale to C + setlocale(LC_ALL, "C"); + // Make brace matching easier to see ic_style_def("ic-bracematch", "teal");