Fixed several locales issues on file import/export

This commit is contained in:
Lukas Matena 2021-05-24 12:20:55 +02:00
parent 4a7f078527
commit c05b8210f2
3 changed files with 11 additions and 1 deletions
src/slic3r/GUI

View file

@ -992,6 +992,9 @@ void GCodeViewer::export_toolpaths_to_obj(const char* filename) const
// save materials file
boost::filesystem::path mat_filename(filename);
mat_filename.replace_extension("mtl");
CNumericLocalesSetter locales_setter;
FILE* fp = boost::nowide::fopen(mat_filename.string().c_str(), "w");
if (fp == nullptr) {
BOOST_LOG_TRIVIAL(error) << "GCodeViewer::export_toolpaths_to_obj: Couldn't open " << mat_filename.string().c_str() << " for writing";