-
Notifications
You must be signed in to change notification settings - Fork 1.5k
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
Use ansi codepage for internal multibyte strings on windows (fixes #976, fixes #974, fixes #444) #979
Conversation
5302efd
to
78d30bc
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for working on this! I had just one comment, looks good otherwise.
a4d674b
to
62bf068
Compare
Better than ever? :) |
818c3b5
to
e291b3d
Compare
c250e46
to
3921dc7
Compare
Tracked down a couple of more issues.. There were multiple similar problems, in client, server and deamon, so it took several attempts to track them down and fix them. Not entirely sure all are properly handled yet, I hope so, and think so, but let's wait a little bit and see if @cheese, reporter of #974, will agree... In general I guess the main solution is to be explicit about use of UTF-8 for strings sent over IPC, and to be sure to use current locale encoding (normally "ANSI" on Windows) for std::string's. E.g. QString::toStdString uses UTF-8, which is somewhat annoying (although UTF-8 Everywhere is a thing, its not a short term solution here). Edit: Wait a minute.. For the QString conversions I can probably use Qt's to/fromLocal8Bit. I considered those before, but wasn't sure they were matching the MultiByte/ANSI/codepage/whatever-you-call-it kind of strings on Windows, but then found this:
Will rewrite (again) and post back... |
f6e2222
to
0d2003c
Compare
Done.
PS: Would still be nice to see #974 being tested OK, since there were so many iterations with different issues here.. |
Thanks! |
Fixes #976
Fixes #974
Fixes #444
Probably conflicts with #972, but if you accept both PRs then just "ping" me and I can quickly fix it (either if I can merge the PR branches together, or you can merge one of them to master first and I rebase the other one, or something else..?)