diff options
author | bubnikv <bubnikv@gmail.com> | 2017-10-26 18:17:39 +0300 |
---|---|---|
committer | bubnikv <bubnikv@gmail.com> | 2017-10-26 18:17:39 +0300 |
commit | 5a99e694cee58b35183ff1fa9300576883e0373b (patch) | |
tree | e231d604403175423c2a290ff47a0fe3dcd28b36 /xs/src/libslic3r/utils.cpp | |
parent | ee645007f29cd8df4d2f085efb9b61bf958025e9 (diff) |
Another step towards the C++ presets.
Diffstat (limited to 'xs/src/libslic3r/utils.cpp')
-rw-r--r-- | xs/src/libslic3r/utils.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/xs/src/libslic3r/utils.cpp b/xs/src/libslic3r/utils.cpp index 3910a0586..98f709f1e 100644 --- a/xs/src/libslic3r/utils.cpp +++ b/xs/src/libslic3r/utils.cpp @@ -226,9 +226,10 @@ std::string decode_path(const char *src) #endif /* WIN32 */ } +std::locale locale_utf8(boost::locale::generator().generate("")); + std::string normalize_utf8_nfc(const char *src) { - static std::locale locale_utf8(boost::locale::generator().generate("")); return boost::locale::normalize(src, boost::locale::norm_nfc, locale_utf8); } |