diff options
| author | JosJuice <josjuice@gmail.com> | 2020-09-21 11:23:06 +0200 |
|---|---|---|
| committer | JosJuice <josjuice@gmail.com> | 2020-09-21 17:26:29 +0200 |
| commit | 16d2ef1ea9bc35e0a30806e1406a9aa6be9d409f (patch) | |
| tree | e8d4c872b3466c46276f43d87bec8c12c30e6575 /Source/Core/Common/StringUtil.h | |
| parent | 39df01434c3a6f444e658d1bea660ff2a6badcef (diff) | |
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.)
Diffstat (limited to 'Source/Core/Common/StringUtil.h')
| -rw-r--r-- | Source/Core/Common/StringUtil.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/Source/Core/Common/StringUtil.h b/Source/Core/Common/StringUtil.h index 0539667383..615127d191 100644 --- a/Source/Core/Common/StringUtil.h +++ b/Source/Core/Common/StringUtil.h @@ -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 |
