Use u8path to construct the std::filesystem::path to ensure the string is correctly treated as UTF-8.
Motivation and Context
Fixes crash on startup if OBS is installed on non-English systems.
How Has This Been Tested?
Tested on a Windows VM with a user named くそ, while I could not reproduce the crash, I could reproduce the plugin not loading due to the migration failing. With this patch it worked and loaded up normally.
Types of changes
Bug fix (non-breaking change which fixes an issue)
Description
Use
u8path
to construct thestd::filesystem::path
to ensure the string is correctly treated as UTF-8.Motivation and Context
Fixes crash on startup if OBS is installed on non-English systems.
How Has This Been Tested?
Tested on a Windows VM with a user named
くそ
, while I could not reproduce the crash, I could reproduce the plugin not loading due to the migration failing. With this patch it worked and loaded up normally.Types of changes
Checklist:
master
or arelease/*
branch.