Question about wide-char string literals

Alex Henrie alexhenrie24 at gmail.com
Thu Nov 12 18:45:39 CST 2020


Hello everyone,

Currently the WineHQ Wiki's "Developer Hints" page says that L-strings
are only allowed in the source code of PE modules [1] (although the
"Code Hygiene" page still says that they are not allowed at all [2]).
However, if MinGW is not installed, Wine's build system will compile
that same source code with L-strings as an SO module and it works
thanks to the -fshort-wchar compiler flag. So what's stopping us from
using -fshort-wchar and L-strings everywhere?

-Alex

[1] https://wiki.winehq.org/Developer_Hints#Using_only_C89-compliant_code
[2] https://wiki.winehq.org/Code_Hygiene#Constants_as_Character_Arrays



More information about the wine-devel mailing list