From 754687fd75a226cb5a3a46d92b8c48e589a59a54 Mon Sep 17 00:00:00 2001 From: mitchell <70453897+667e-11@users.noreply.github.com> Date: Sat, 14 Feb 2009 16:31:42 -0500 Subject: Read and write in binary mode for everything. --- core/init.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'core/init.lua') 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() -- cgit v1.2.3