diff options
author | 2009-02-14 16:31:42 -0500 | |
---|---|---|
committer | 2009-02-14 16:31:42 -0500 | |
commit | 754687fd75a226cb5a3a46d92b8c48e589a59a54 (patch) | |
tree | 9e2f716a1f90533205d3dacd54606d4a648a01f5 /core/init.lua | |
parent | 6fc95cc3a1df42d81f24d1a912bcaec952db62d4 (diff) | |
download | textadept-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.lua | 2 |
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() |