Skip to content

Commit 14a422c

Browse files
committed
Dont' Emit the UTF8 Identifier in the response file
1 parent 0140ced commit 14a422c

File tree

1 file changed

+4
-1
lines changed
  • src/Xamarin.Android.Build.Tasks/Tasks

1 file changed

+4
-1
lines changed

src/Xamarin.Android.Build.Tasks/Tasks/Aot.cs

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -464,7 +464,10 @@ bool RunAotCompiler (string assembliesPath, string aotCompiler, string aotOption
464464
var stderr_completed = new ManualResetEvent (false);
465465
var responseFile = Path.GetTempFileName ();
466466
try {
467-
File.WriteAllText (responseFile, aotOptions + " " + assembly);
467+
using (var sw = new StreamWriter (path: responseFile, append: false,
468+
encoding: new UTF8Encoding (encoderShouldEmitUTF8Identifier: false))) {
469+
sw.WriteLine (aotOptions + " " + assembly);
470+
}
468471

469472
var psi = new ProcessStartInfo () {
470473
FileName = aotCompiler,

0 commit comments

Comments
 (0)