aboutsummaryrefslogtreecommitdiff
path: root/core/init.lua
diff options
context:
space:
mode:
authormitchell <70453897+667e-11@users.noreply.github.com>2009-02-14 16:31:42 -0500
committermitchell <70453897+667e-11@users.noreply.github.com>2009-02-14 16:31:42 -0500
commit754687fd75a226cb5a3a46d92b8c48e589a59a54 (patch)
tree9e2f716a1f90533205d3dacd54606d4a648a01f5 /core/init.lua
parent6fc95cc3a1df42d81f24d1a912bcaec952db62d4 (diff)
downloadtextadept-754687fd75a226cb5a3a46d92b8c48e589a59a54.tar.gz
textadept-754687fd75a226cb5a3a46d92b8c48e589a59a54.zip
Read and write in binary mode for everything.
Diffstat (limited to 'core/init.lua')
-rw-r--r--core/init.lua2
1 files changed, 1 insertions, 1 deletions
diff --git a/core/init.lua b/core/init.lua
index bf272496..b6d04424 100644
--- a/core/init.lua
+++ b/core/init.lua
@@ -12,7 +12,7 @@ end
_THEME = 'light'
local user_dir = os.getenv(not WIN32 and 'HOME' or 'USERPROFILE')
if user_dir then
- local f = io.open(user_dir..'/.ta_theme')
+ local f = io.open(user_dir..'/.ta_theme', 'rb')
if f then
theme = f:read('*line'):match('[^\r\n]+')
f:close()