mirror of
https://github.com/luau-lang/luau.git
synced 2025-04-01 17:30:53 +01: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>
|
#include <fcntl.h>
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
#include <locale.h>
|
||||||
|
|
||||||
LUAU_FASTFLAG(DebugLuauTimeTracing)
|
LUAU_FASTFLAG(DebugLuauTimeTracing)
|
||||||
|
|
||||||
enum class CliMode
|
enum class CliMode
|
||||||
|
@ -435,6 +437,9 @@ static void runReplImpl(lua_State* L)
|
||||||
{
|
{
|
||||||
ic_set_default_completer(completeRepl, L);
|
ic_set_default_completer(completeRepl, L);
|
||||||
|
|
||||||
|
// Reset the locale to C
|
||||||
|
setlocale(LC_ALL, "C");
|
||||||
|
|
||||||
// Make brace matching easier to see
|
// Make brace matching easier to see
|
||||||
ic_style_def("ic-bracematch", "teal");
|
ic_style_def("ic-bracematch", "teal");
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue