diff --git a/xs/src/libslic3r/utils.cpp b/xs/src/libslic3r/utils.cpp index 8f39186e2..e3cdd5084 100644 --- a/xs/src/libslic3r/utils.cpp +++ b/xs/src/libslic3r/utils.cpp @@ -183,7 +183,7 @@ std::string decode_path(const char *src) std::string normalize_utf8_nfc(const char *src) { - static std::locale locale_utf8("en_US.UTF-8"); + static std::locale locale_utf8(boost::locale::generator().generate("")); return boost::locale::normalize(src, boost::locale::norm_nfc, locale_utf8); }