New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
DolphinQt: Handle non-ASCII characters in Windows cmd arguments #9104
Conversation
|
...where are you seeing a problem? |
|
I'm guessing you used cmake, and dolphin's cmake seems to be lacking this currently: https://stackoverflow.com/questions/14115024/how-to-link-qtmain-in-cmake-with-qt5 |
|
My test case is placing a file named "Pokémon Channel.rvz" in the same folder as Dolphin and running I was not using CMake. |
|
OK, it seems an improvement would be to not use qtmain and only this PR, then? |
|
If qtmain doesn't have any purpose other than parsing command line arguments, then I suppose so. I'm not very familiar with what it does. |
|
Yea (link in my post above is the complete qtmain.lib sources). |
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.)
736b6c4
to
17e0283
Compare
|
Does this look good? |
|
yea |
|
Thank you! I had given up hope that this issue would be solved. Thanks again for fixing this niggling problem. |
CommandLineParseexpects UTF-8 strings. (QApplication, on the other hand, seems to be designed so that you can pass in thechar**argvuntouched on Windows and get proper Unicode handling.)