-
Notifications
You must be signed in to change notification settings - Fork 793
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
Fix char/wchar/tchar inconsistencies in PythonService.cpp #1373
Fix char/wchar/tchar inconsistencies in PythonService.cpp #1373
Conversation
Fixing inconsistencies sounds great, but if possible, I'd rather consistently use WCHAR - there's no reason to have this building with narrow characters. setup.py tries to force unicode, but does this cause an issue with gcc? |
No, gcc/mingw handles UNICODE/wchar_t just fine.
I could do that too. The problem is this function: static BOOL ReportError(DWORD, LPCTSTR *inserts = NULL, WORD errorType = EVENTLOG_ERROR_TYPE); It uses |
But aren't they always identical in this case because this is never built without UNICODE defined? |
I didn't say it's an error, I said it's an inconsistency :) |
7ab85e9
to
d4e7b29
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.
As mentioned above, I'd really prefer this consistently use WCHAR instead of TCHAR.
I'll try to figure out if I can improve the current state of things and force push new commits. If I can't find a way I'll just close the PR. |
I'm closing this. Nothing I do is an improvement on either the current code or the code in the PR. |
While trying to compile the code with gcc I got a bunch of errors. I fix them in this PR. Most of the fixes make sense, but there is one dodgy part that needs to be reviewed: