From ad96d099cce045213ad05b129106630ebb5e29a2 Mon Sep 17 00:00:00 2001 From: mitchell <70453897+667e-11@users.noreply.github.com> Date: Wed, 1 May 2013 10:35:35 -0400 Subject: Fixed bug in file encodings; core/file_io.lua This fix was repackaged into 6.6 beta. --- core/file_io.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'core/file_io.lua') diff --git a/core/file_io.lua b/core/file_io.lua index adcc3d28..7dd0e354 100644 --- a/core/file_io.lua +++ b/core/file_io.lua @@ -165,7 +165,7 @@ function io.open_file(utf8_filenames) end if not buffer.encoding then error(_L['Encoding conversion failed.']) end end - buffer.code_page = encoding and _SCINTILLA.constants.SC_CP_UTF8 or 0 + buffer.code_page = buffer.encoding and _SCINTILLA.constants.SC_CP_UTF8 or 0 -- Detect EOL mode. local s, e = text:find('\r\n?') if s and e then -- cgit v1.2.3