mirror of
https://git.mirrors.martin98.com/https://github.com/slic3r/Slic3r.git
synced 2025-08-15 02:16:01 +08:00
Fixed a default locale on Windows for UTF normalization.
This commit is contained in:
parent
b35f5780dc
commit
29d9a1e810
@ -183,7 +183,7 @@ std::string decode_path(const char *src)
|
|||||||
|
|
||||||
std::string normalize_utf8_nfc(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);
|
return boost::locale::normalize(src, boost::locale::norm_nfc, locale_utf8);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user