Spanish single characters recognized as multi-character

lrtaylor@micron.com lrtaylor@micron.com
Wed Oct 15 19:35:00 GMT 2003


What happens if you use wprintf instead?

wprintf(L"%d - %c\n", 'ñ', 'ñ');

Although, I don't recall for sure whether the L goes before or after the string constant...

Cheers,
Lyle

-----Original Message-----
From: Salvador Ramirez [mailto:sram@profc.udec.cl] 
 --------
#include <stdio.h>
int main(void) {
    printf("%d - %c\n", 'ñ', 'ñ');
}
--------

  if I compile that program I get the following message warning from GCC:

warning: multi-character character constant



More information about the Gcc-help mailing list