From 7bb80a84aba778c51578182f391b08a1cb25dc49 Mon Sep 17 00:00:00 2001 From: Filip Sykala - NTB T15p Date: Mon, 28 Nov 2022 17:16:25 +0100 Subject: [PATCH] Fix UTF8 coding for filename --- src/admesh/shared.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/admesh/shared.cpp b/src/admesh/shared.cpp index 807d9ef4c..8ead78d08 100644 --- a/src/admesh/shared.cpp +++ b/src/admesh/shared.cpp @@ -210,8 +210,9 @@ bool its_write_obj(const indexed_triangle_set &its, const char *file) bool its_write_obj(const indexed_triangle_set& its, const std::vector &color, const char* file) { Slic3r::CNumericLocalesSetter locales_setter; - FILE* fp = fopen(file, "w"); + FILE* fp = boost::nowide::fopen(file, "w"); if (fp == nullptr) { + BOOST_LOG_TRIVIAL(error) << "stl_write_obj: Couldn't open " << file << " for writing"; return false; }