Never said that. Citation needed. I'm well aware the wc capabilities of libc because I had to implement those for POSIX-UEFI. BTW I don't care, because with transparent UTF-8 conversion this works out-of-the-box in POSIX-UEFI with char arguments.nullplan wrote:bzt, you claimed wchar_t was an MSVC thing.
Haha, funny. You can't target the Windows ABI with gcc, you have to create an ELF shared library and then convert that into PE using objconv. Otherwise you'd need a non-official gcc compiler, like cygwin or mingw for example (not part of GNU gcc, those are forks).Octocontrabass wrote:I'm asking specifically for examples of GCC or Clang mistakenly using a 32-bit wchar_t when targeting the Windows ABI.bzt wrote:I did show you examples with links, actually. Check out my previous post.
First, it does not say that (where's that clause 4 they're referencing?).Octocontrabass wrote:Right here:bzt wrote:Show me where does the C standard allow defining strcpy with wchar_t for example.The wording changes a bit depending on the draft you're looking at, but all of them say it's implementation-defined. GCC and Clang make no assumptions about C standard library functions in freestanding mode, aside from the four mem* functions, so you're free to redefine strcpy however you like.C standard draft N1548 wrote:In a freestanding environment (in which C program execution may take place without any benefit of an operating system), the name and type of the function called at program startup are implementation-defined. Any library facilities available to a freestanding program, other than the minimal set required by clause 4, are implementation-defined.
Second, I've already said this, builtins are not working as they should be, just google about issues, you'll find plenty (gcc, Clang alike). It is not my job to teach you how to google, sorry.
Third, and most importantly, I don't care what's in the doc or what you're saying as long as my compiler are complaining. And it does if I'm not using the UTF-8 wrapper. End of discussion.
Cheers,
bzt