--- a/Plugins/VcsPlugins/vcsMercurial/HgDiffDialog.py Tue Sep 06 19:47:39 2011 +0200 +++ b/Plugins/VcsPlugins/vcsMercurial/HgDiffDialog.py Wed Sep 07 18:08:56 2011 +0200 @@ -342,7 +342,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: