Fix UTF8 coding for filename
This commit is contained in:
parent
df5312d3b2
commit
7bb80a84ab
1 changed files with 2 additions and 1 deletions
|
@ -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<obj_color> &color, const char* file)
|
bool its_write_obj(const indexed_triangle_set& its, const std::vector<obj_color> &color, const char* file)
|
||||||
{
|
{
|
||||||
Slic3r::CNumericLocalesSetter locales_setter;
|
Slic3r::CNumericLocalesSetter locales_setter;
|
||||||
FILE* fp = fopen(file, "w");
|
FILE* fp = boost::nowide::fopen(file, "w");
|
||||||
if (fp == nullptr) {
|
if (fp == nullptr) {
|
||||||
|
BOOST_LOG_TRIVIAL(error) << "stl_write_obj: Couldn't open " << file << " for writing";
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue