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/ext/pm/project_browser.lua | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'core/ext/pm/project_browser.lua') diff --git a/core/ext/pm/project_browser.lua b/core/ext/pm/project_browser.lua index 30616ef9..f034e41c 100644 --- a/core/ext/pm/project_browser.lua +++ b/core/ext/pm/project_browser.lua @@ -179,7 +179,7 @@ function perform_menu_action(menu_id, selected_item) if ret == '3' then return end end end - local f = io.open(file, 'w') + local f = io.open(file, 'wb') f:write('') f:close() update_project() @@ -412,7 +412,7 @@ end -- Sets the local 'project_file' and 'project' fields appropriately. -- @param file The project file. load_project = function(file) - local f = io.open(file) + local f = io.open(file, 'rb') project_root = loadstring('return '..f:read('*all'))() f:close() project_file = file @@ -436,7 +436,7 @@ update_project = function() end end end - local f = io.open(project_file, 'w') + local f = io.open(project_file, 'wb') f:write('{\n') write_folder(project_root, f) f:write('}') -- cgit v1.2.3