[Bug 40043] Initialization of a wstring fails with wineg++

wine-bugs at winehq.org wine-bugs at winehq.org
Sat Oct 22 16:52:08 CDT 2016


https://bugs.winehq.org/show_bug.cgi?id=40043

--- Comment #11 from Henri Verbeet <hverbeet at gmail.com> ---
(In reply to Detlef Riekenberg from comment #10)
> This testcase can be compiled with g++ (result works) and wineg++ (result
> fails)
Does "-fno-short-wchar" make it any better? The underlying issue is probably
that wchar_t is usually 32 bits on Linux, and 16 bits on Windows. Winegcc uses
-fshort-wchar to try to work around that, but that means you can't then use
things like Linux libstdc++ that assume wchar_t is 32-bit.

If you're using C++11 in particular, you're probably better of with
"-fno-short-wchar" and using char16_t, u"", etc. instead of wchar_t and L"".

-- 
Do not reply to this email, post in Bugzilla using the
above URL to reply.
You are receiving this mail because:
You are watching all bug changes.



More information about the wine-bugs mailing list