From 012249aa2fec5d0d39fccfec0e8ea66b87d7e718 Mon Sep 17 00:00:00 2001 From: Eric Oulashin <eric.oulashin@gmail.com> Date: Sat, 19 Oct 2024 15:52:50 -0700 Subject: [PATCH] SlyEdit: Always open the quote/input file in "rb" mode --- exec/SlyEdit.js | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/exec/SlyEdit.js b/exec/SlyEdit.js index 6d57e6cf79..4a8de42d17 100644 --- a/exec/SlyEdit.js +++ b/exec/SlyEdit.js @@ -1041,8 +1041,7 @@ function readQuoteOrMessageFile() // code point are truncated to ASCII Ctrl-Z (ASCII 26) char, which is interpreted // by Windows as an "EOF" (end of file) marker for files open in text mode and the // file won't be read beyond that char. - var openMode = gUseQuotes ? "rb" : "r"; - if (inputFile.open(openMode, false)) + if (inputFile.open("rb", false)) { // Read into the gQuoteLines or gEditLines array, depending on the value // of gUseQuotes. Use a buffer size that should be long enough. -- GitLab