mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-07-28 11:49:06 +00:00
DolphinQt: Handle non-ASCII characters in Windows cmd arguments
CommandLineParse expects UTF-8 strings. (QApplication, on the other hand, seems to be designed so that you can pass in the char** argv untouched on Windows and get proper Unicode handling.)
This commit is contained in:
parent
39df01434c
commit
16d2ef1ea9
4 changed files with 39 additions and 21 deletions
|
@ -236,3 +236,7 @@ inline bool IsPrintableCharacter(char c)
|
|||
{
|
||||
return std::isprint(c, std::locale::classic());
|
||||
}
|
||||
|
||||
#ifdef _WIN32
|
||||
std::vector<std::string> CommandLineToUtf8Argv(const wchar_t* command_line);
|
||||
#endif
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue