-
Notifications
You must be signed in to change notification settings - Fork 1.1k
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 Unicode Character Set to build aws-cpp-sdk-core library #153
Comments
No. |
We support Unicode the Unix way, and don't want the complexity or mess that comes with window's half baked unicode solution. You can use unicode safely in the SDK by just passing unicode strings as char* or std::string. Unfortunately, this may mean you need to convert wchar* or std::wstring over, but this is less problematic than trying to support wchar formats in general. I see we have a bug here with the version info struct we are using will update. I'll update this issue once we update it. |
Confirmed, we are using OSVersionInfo instead of OSVersionInfoA, this causes people compiling with unicode turned on with TCHAR resolving to WCHAR to have broken builds. https://msdn.microsoft.com/en-us/library/windows/desktop/ms724834(v=vs.85).aspx Will update when bug is fixed. |
I've got an update going through CI right now. I'll push out as soon as it's finished. |
I pushed the update out, can you verify your build? |
When I set in Visual Studio 2013 Use Unicode Character Set for aws-cpp-sdk-core project property I got cast error: C2664: 'BOOL GetVersionExA(LPOSVERSIONINFOA)' : cannot convert argument 1 from 'OSVERSIONINFO *' to 'LPOSVERSIONINFOA' D:\xxxxx\aws-sdk-cpp\aws-cpp-sdk-core\source\utils\OSVersionInfo.cpp. My solution to solve this error is :
change line GetVersionExA(&versionInfo); to:
ifdef _UNICODE
else
endif
Am I right?
The text was updated successfully, but these errors were encountered: