Patch unicodes not working properly on Windows
Co-Authored-By: Karim Akra <144803230+KarimAkra@users.noreply.github.com>
This commit is contained in:
committed by
Hundrec
co-authored by
Karim Akra
parent
970a29cd5f
commit
eb4d9e9323
+8
-10
@@ -531,6 +531,14 @@ class Project extends HXProject
|
||||
{
|
||||
super();
|
||||
|
||||
#if !target.unicode
|
||||
if (isWindowsHost())
|
||||
{
|
||||
// Enable code page 65001 for unicode support
|
||||
Sys.command("chcp 65001 > nul");
|
||||
}
|
||||
#end
|
||||
|
||||
envConfig = readEnvironmentFile("./.env");
|
||||
|
||||
flair();
|
||||
@@ -956,16 +964,6 @@ class Project extends HXProject
|
||||
var unicodeCheck:String = "✓ ";
|
||||
var unicodeCross:String = "× ";
|
||||
|
||||
if (isWindowsHost())
|
||||
{
|
||||
#if (!target.unicode)
|
||||
// lime build tools uses neko (unless compiling with `-eval`), and neko on windows doesn't support UTF8/unicode characters
|
||||
// so we need to remove our cute emoji!
|
||||
unicodeCheck = "o ";
|
||||
unicodeCross = "x ";
|
||||
#end
|
||||
}
|
||||
|
||||
for (flagStr in this.haxedefs.keys())
|
||||
{
|
||||
if (!flagStr.startsWith(FeatureFlag.INVERSE_PREFIX))
|
||||
|
||||
Reference in New Issue
Block a user