Hi,
another CB newbie question: I use CodeBlocks 13.12 (codeblocks-13.12mingw-setup.exe) in Windows 8, and I use CB, also 13.12, in Linux (Ubuntu 12.04).
Problem: The following program:
// listing: umlaut.c
#include <stdio.h>
#include <stdlib.h>
#define UE (unsigned char)154 //define German umlaut
int main(void) {
printf("German: %cbung \n", UE); // use umlaut ASCII code 154
printf("English: Exercise \n");
return 0;
}
when compiled and built with CB in Windows 8, the binary umlaut.exe turns out the correct character for ASCII code 154, but
when compiled and built with CB in Ubuntu, the binary umlaut turns out only '?' instead of the character for ASCII code 154.
Why is this so? And how can I fix the CB linux problem?
Thank you,
codecub