First, thank you very much for the great development toolkit!
There is a minor bug in IDE (version 6.50.8 RC #4 Win64). Take any file in ANSI encoding and choose File > Properties > Source > Encoding = OEM. Press Ctrl+S. Pelles IDE will show a message box: "Error writing to file 'pelles_test.c'. Invalid or unknown file format." and the file will be deleted.
Expected result: the file should be saved in OEM encoding.
Another minor problem. If you choose warning level 2 in project settings, Pelles reports "The return value from 'printf' is never used" for any occurrence of printf (because most people never use the return value from the printf function).
I solved the problem by defining:
#define printf (void)printf
but it would be helpful if you turn the warning off for printf by default.
Thank you again.
First, thank you very much for the great development toolkit!
There is a minor bug in IDE (version 6.50.8 RC #4 Win64). Take any file in ANSI encoding and choose File > Properties > Source > Encoding = OEM. Press Ctrl+S. Pelles IDE will show a message box: "Error writing to file 'pelles_test.c'. Invalid or unknown file format." and the file will be deleted.
Expected result: the file should be saved in OEM encoding.
Or at least not deleted ... that is nasty. Do note however that OEM is not an option for saving source files in the main tools->options dialog.
Another minor problem. If you choose warning level 2 in project settings, Pelles reports "The return value from 'printf' is never used" for any occurrence of printf (because most people never use the return value from the printf function).
I solved the problem by defining:
#define printf (void)printf
but it would be helpful if you turn the warning off for printf by default.
Thank you again.
This on you can handle with a #pragma ( warn disable : ##### ) at the top of your source file...
Details at: help->contents->command line tools->pocc compiler-> compiler pragmas