--- a/Plugins/VcsPlugins/vcsMercurial/HgDiffDialog.py Tue Apr 29 18:22:44 2014 +0200 +++ b/Plugins/VcsPlugins/vcsMercurial/HgDiffDialog.py Wed Apr 30 18:33:53 2014 +0200 @@ -433,7 +433,7 @@ eol = e5App().getObject("Project").getEolString() try: - f = open(fname, "w", encoding="utf-8") + f = open(fname, "w", encoding="utf-8", newline="") f.write(eol.join(self.contents.toPlainText().splitlines())) f.close() except IOError as why: