diff --git a/simgear/props/props_io.cxx b/simgear/props/props_io.cxx index 84ca8161..f98dbfff 100644 --- a/simgear/props/props_io.cxx +++ b/simgear/props/props_io.cxx @@ -21,6 +21,7 @@ #include #include #include +#include #include "props.hxx" #include "props_io.hxx" @@ -696,7 +697,7 @@ writeProperties (const SGPath &path, const SGPropertyNode * start_node, SGPath dpath(path); dpath.create_dir(0755); - ofstream output(path.local8BitStr().c_str()); + sg_ofstream output(path); if (output.good()) { writeProperties(output, start_node, write_all, archive_flag); } else {