This is the mail archive of the gcc-help@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

RE: Spanish single characters recognized as multi-character


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]