Skip to content

Commit

Permalink
Fix non-C locale issues in REPL (#474)
Browse files Browse the repository at this point in the history
  • Loading branch information
byte-chan authored May 4, 2022
1 parent 47a8d28 commit 9156b5a
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions CLI/Repl.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,8 @@
#include <fcntl.h>
#endif

#include <locale.h>

LUAU_FASTFLAG(DebugLuauTimeTracing)

enum class CliMode
Expand Down Expand Up @@ -435,6 +437,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");

Expand Down

0 comments on commit 9156b5a

Please sign in to comment.