diff --git a/exec/fseditor.js b/exec/fseditor.js index 334a1c17ae7a65c2dbbc0a07dcbff5c80a8b7e24..031c61f0debd491a2f808aed5b04b11e03f24485 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();