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
Makefile.m32: add support for UNICODE builds #6228
Conversation
It requires the linker to support the -municode option.
Just curious, isn't Unicode support a C11 thing or am I getting it wrong ehat is meant by this |
@emilengler on Windows, the macro UNICODE is used to specify which API should be used, mainly when dealing with path names. But the name of the macro is misleading. It actually sets the character encoding used for path names : ANSI or UTF-16. These API exists at least since Windows XP. For example, when you call Createfile() API :
|
Ok my mistake, thansk for the clarification 👌 |
Windows docs sometimes say Unicode but actually they mean a certain type of Unicode encoding, UTF-16. Do we need -municode, what does it actually do? Use wmain entry? I thought that was detected automatically by the compiler (or at least that's how we have it set now): Lines 273 to 281 in 315ee3f
|
@jay for -municode : https://gcc.gnu.org/onlinedocs/gcc/x86-Windows-Options.html |
|
It requires the linker to support the
-municode
option.