From 2c2b60323f89ac608bf3270515ad64de0062ca26 Mon Sep 17 00:00:00 2001 From: wmayer Date: Mon, 22 Mar 2021 17:13:56 +0100 Subject: [PATCH] Import: [skip ci] handle utf-8 filepath when writing to dxf --- src/Mod/Import/App/dxf.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/Mod/Import/App/dxf.cpp b/src/Mod/Import/App/dxf.cpp index 19e116beac..65d96bfb57 100644 --- a/src/Mod/Import/App/dxf.cpp +++ b/src/Mod/Import/App/dxf.cpp @@ -15,6 +15,7 @@ #include #include #include +#include #include #include "dxf.h" @@ -47,7 +48,8 @@ m_layerName("none") // start the file m_fail = false; m_version = 12; - m_ofs = new ofstream(filepath, ios::out); + Base::FileInfo fi(filepath); + m_ofs = new Base::ofstream(fi, ios::out); m_ssBlock = new std::ostringstream(); m_ssBlkRecord = new std::ostringstream(); m_ssEntity = new std::ostringstream();