mirror of
https://github.com/luau-lang/luau.git
synced 2024-12-12 21:10:37 +00:00
Fix non-C locale issues in REPL (#474)
This commit is contained in:
parent
47a8d28aa9
commit
9156b5ae6d
1 changed files with 5 additions and 0 deletions
|
@ -21,6 +21,8 @@
|
|||
#include <fcntl.h>
|
||||
#endif
|
||||
|
||||
#include <locale.h>
|
||||
|
||||
LUAU_FASTFLAG(DebugLuauTimeTracing)
|
||||
|
||||
enum class CliMode
|
||||
|
@ -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");
|
||||
|
||||
|
|
Loading…
Reference in a new issue