diff options
author | Michael Hutchinson <m.j.hutchinson@gmail.com> | 2011-07-28 12:41:44 +0400 |
---|---|---|
committer | Michael Hutchinson <m.j.hutchinson@gmail.com> | 2011-07-28 16:49:54 +0400 |
commit | f4c3607e0c3bd266f1b13a0c18a8e75425c11e88 (patch) | |
tree | 7d808af9dbd29d008d217d4c1f3910e5fb619282 /main | |
parent | d4567fecca939f2316614d3fbb4636bd1331aea1 (diff) |
[Project] Safer write for MSBuild project files
Diffstat (limited to 'main')
-rw-r--r-- | main/src/core/MonoDevelop.Core/MonoDevelop.Projects.Formats.MSBuild/MSBuildProjectHandler.cs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/main/src/core/MonoDevelop.Core/MonoDevelop.Projects.Formats.MSBuild/MSBuildProjectHandler.cs b/main/src/core/MonoDevelop.Core/MonoDevelop.Projects.Formats.MSBuild/MSBuildProjectHandler.cs index 2b8ce3e85c..21b8cad8f4 100644 --- a/main/src/core/MonoDevelop.Core/MonoDevelop.Projects.Formats.MSBuild/MSBuildProjectHandler.cs +++ b/main/src/core/MonoDevelop.Core/MonoDevelop.Projects.Formats.MSBuild/MSBuildProjectHandler.cs @@ -904,7 +904,7 @@ namespace MonoDevelop.Projects.Formats.MSBuild // Don't save the file to disk if the content did not change if (txt != fileContent) { - File.WriteAllText (eitem.FileName, txt); + MonoDevelop.Projects.Text.TextFile.WriteFile (eitem.FileName, txt, "UTF-8"); fileContent = txt; if (projectBuilder != null) |