mirror of
https://github.com/luau-lang/luau.git
synced 2024-12-13 13:30:40 +00: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
1 changed files with 4 additions and 0 deletions
|
@ -675,6 +675,10 @@ int replMain(int argc, char** argv)
|
||||||
|
|
||||||
setLuauFlagsDefault();
|
setLuauFlagsDefault();
|
||||||
|
|
||||||
|
#ifdef _WIN32
|
||||||
|
SetConsoleOutputCP(CP_UTF8);
|
||||||
|
#endif
|
||||||
|
|
||||||
int profile = 0;
|
int profile = 0;
|
||||||
bool coverage = false;
|
bool coverage = false;
|
||||||
bool interactive = false;
|
bool interactive = false;
|
||||||
|
|
Loading…
Reference in a new issue