diff --git a/src/lua/luadumper.cpp b/src/lua/luadumper.cpp index 86cb35a..870c4bd 100644 --- a/src/lua/luadumper.cpp +++ b/src/lua/luadumper.cpp @@ -67,10 +67,10 @@ void glt::lua::IoThread() { continue; } - auto of = std::ofstream(path, glt::config::GetConfig().stealer_write_mode); - of << "-- " << sanitized_filename << "\n"; - of << "-- Retrieved by https://github.com/lewisclark/glua-steal\n"; - of << entry.code << "\n\n"; + auto of = std::ofstream(path, glt::config::GetConfig().stealer_write_mode | std::ofstream::binary); + of << "-- " << sanitized_filename << std::endl; + of << "-- Retrieved by https://github.com/lewisclark/glua-steal" << std::endl; + of << entry.code; } shared_entries.clear();