From f8eab94f7fe3a72f00f6d9c6be21299c4938e5c9 Mon Sep 17 00:00:00 2001 From: deuce <> Date: Sun, 28 Oct 2007 17:14:26 +0000 Subject: [PATCH] Open the output file in binary mode to prevent \r\r\n from being written as the line terminator. Should fix double-spacing bug under Win32 with FTN software. --- exec/fseditor.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/exec/fseditor.js b/exec/fseditor.js index 334a1c17ae..031c61f0de 100644 --- a/exec/fseditor.js +++ b/exec/fseditor.js @@ -1749,7 +1749,7 @@ function edit(quote_first) break; case '\x1a': /* CTRL-Z (EOF) (PgUp in SyncEdit) */ var f=new File((argc==0?system.temp_dir+"INPUT.MSG":argv[0])); - f.open("w"); + f.open("wb"); var s=make_strings(true,true); f.write(s[0]); f.close(); -- GitLab