setlocale in windows codeblock without running right

1

I have a programming project that was to develop a replica d naval battle game. but I did the whole program on Linux (Ubuntu 16.04) but my teacher uses windows (using codeblocks) and to ensure I was testing the same on windows I already added locale.h and setlocale(LC_ALL, "portuguese") and in principle the ç appeared normal, but the a , i ... accented letters are either uppercase or not all are crazy. the program is divided into several files and some printf are in other files. setlocale is only at the beginning of main() .

    
asked by anonymous 30.10.2017 / 21:26

0 answers