mirror of
https://github.com/OrcaSlicer/OrcaSlicer.git
synced 2026-05-17 10:32:20 +00:00
Another step towards the C++ presets.
This commit is contained in:
@@ -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);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user