diff options
author | Mike Krüger <mkrueger@xamarin.com> | 2017-03-31 10:49:21 +0300 |
---|---|---|
committer | Mike Krüger <mkrueger@xamarin.com> | 2017-03-31 10:49:21 +0300 |
commit | 97dbce38b0afd1d5e154a844ec6e8166324e20fd (patch) | |
tree | 73b7799e0ba2d083d8c5bf4d7b64a99a65cb6497 /main/src/core/MonoDevelop.Ide/MonoDevelop.Ide.Gui | |
parent | f8986e9094911fef528996eed70b8b6767ded561 (diff) |
Fixed 'Bug 53380 - [Webtools] Editor inserts BOMs sometimes'
In old versions we used a bool to determine if a BOM could be written.
The new editor structure just uses the encoding which can control if a
bom is emitted or not. The text file utility for auto detection now
correctly gives back the right encoding. The bool for the BOM was
removed - it's no longer in the text interfaces as well. Doesn't make
sense to have that on the low level API.
Diffstat (limited to 'main/src/core/MonoDevelop.Ide/MonoDevelop.Ide.Gui')
-rw-r--r-- | main/src/core/MonoDevelop.Ide/MonoDevelop.Ide.Gui/Document.cs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/main/src/core/MonoDevelop.Ide/MonoDevelop.Ide.Gui/Document.cs b/main/src/core/MonoDevelop.Ide/MonoDevelop.Ide.Gui/Document.cs index 3a4a570f1c..6a6854673a 100644 --- a/main/src/core/MonoDevelop.Ide/MonoDevelop.Ide.Gui/Document.cs +++ b/main/src/core/MonoDevelop.Ide/MonoDevelop.Ide.Gui/Document.cs @@ -508,7 +508,7 @@ namespace MonoDevelop.Ide.Gui // save backup first if (IdeApp.Preferences.CreateFileBackupCopies) { if (tbuffer != null && encoding != null) - TextFileUtility.WriteText (filename + "~", tbuffer.Text, encoding, (encoding != null) && (encoding.GetPreamble().Length > 0)); + TextFileUtility.WriteText (filename + "~", tbuffer.Text, encoding); else await Window.ViewContent.Save (new FileSaveInformation (filename + "~", encoding)); } |