obsproject / obs-websocket

Remote-control of OBS Studio through WebSocket
GNU General Public License v2.0
3.86k stars 707 forks source link

Config: Ensure conversion to filesystem::path uses utf-8 #1231

Closed derrod closed 3 months ago

derrod commented 3 months ago

Description

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

Checklist: