diff options
author | mitchell <70453897+667e-11@users.noreply.github.com> | 2013-05-01 10:35:35 -0400 |
---|---|---|
committer | mitchell <70453897+667e-11@users.noreply.github.com> | 2013-05-01 10:35:35 -0400 |
commit | ad96d099cce045213ad05b129106630ebb5e29a2 (patch) | |
tree | 6239a7c5df8ed82a8781b3915021dd9f22332418 | |
parent | b498a39ebbcabeb4c4b1490f4a02a2acd874e3ed (diff) |
Fixed bug in file encodings; core/file_io.lua
This fix was repackaged into 6.6 beta.
-rw-r--r-- | core/file_io.lua | 2 |
1 files changed, 1 insertions, 1 deletions
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 |