mirror of
https://github.com/luau-lang/luau.git
synced 2024-11-15 14:25:44 +08:00
Add console output codepage for windows (#967)
Previously unicode codepoints would be incorrectly shown in windows terminals, such as with u2503(┃): ```ps ❯ "print('\u{2503}')" | luau.exe Γöâ ``` This change fixes the issue by setting the console's codepage on windows, resulting in fixed behaviour: ```ps ❯ "print('\u{2503}')" | luau.exe ┃ ```
This commit is contained in:
parent
a02eb78c96
commit
c98a9d7051
@ -675,6 +675,10 @@ int replMain(int argc, char** argv)
|
||||
|
||||
setLuauFlagsDefault();
|
||||
|
||||
#ifdef _WIN32
|
||||
SetConsoleOutputCP(CP_UTF8);
|
||||
#endif
|
||||
|
||||
int profile = 0;
|
||||
bool coverage = false;
|
||||
bool interactive = false;
|
||||
|
Loading…
Reference in New Issue
Block a user