This commit is contained in:
kaetemi 2019-05-01 08:12:42 +08:00
parent 9360c7974b
commit 605fec7dc8

View file

@ -286,7 +286,7 @@ std::string wideToMbcs(const wchar_t *str, size_t len)
#if defined(NL_OS_WINDOWS)
return winWideToCp(str, len, CP_ACP);
#else
return wideToUTf8(str, len);
return wideToUtf8(str, len);
#endif
}
@ -295,7 +295,7 @@ std::string wideToMbcs(const std::wstring &str)
#if defined(NL_OS_WINDOWS)
return winWideToCp(str.c_str(), str.size(), CP_ACP);
#else
return wideToUTf8(str);
return wideToUtf8(str);
#endif
}