From c3f48c72613718c37df786702ed59e2734d1bae4 Mon Sep 17 00:00:00 2001 From: James Turner Date: Thu, 26 Jan 2017 20:13:33 +0000 Subject: [PATCH] Use sg_ofstream in one more place. --- simgear/props/props_io.cxx | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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 {