Import: [skip ci] handle utf-8 filepath when writing to dxf

This commit is contained in:
wmayer
2021-03-22 17:13:56 +01:00
parent 09f93b2e8d
commit 2c2b60323f

View File

@@ -15,6 +15,7 @@
#include <Base/Console.h>
#include <Base/FileInfo.h>
#include <Base/Parameter.h>
#include <Base/Stream.h>
#include <Base/Vector3D.h>
#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();