Update Windows AutoStart implementation to allow non-ASCII paths

This commit is contained in:
Adam Honse committed 2026-08-26 18:48:46 -05:00
1 parent 046a1bae65
commit 41b7087e20
4 files changed
+25 -32

No files matched your search

+7
View File
@@ -90,6 +90,13 @@ std::string StringUtils::wstring_to_string(const std::wstring wstring)
return(converter.to_bytes(wstring));
}
std::wstring StringUtils::string_to_wstring(const std::string input)
{
std::wstring_convert<std::codecvt_utf8<wchar_t>, wchar_t> converter;
return(converter.from_bytes(input));
}
std::string StringUtils::u16string_to_string(const std::u16string wstring)
{
std::wstring_convert<std::codecvt_utf8_utf16<char16_t>,char16_t> converter;