From: Cristiano <cri...@br...> - 2004-06-25 19:20:20
|
I'm using FOX Toolkit (cross-plataform Windows-Linux) to save an image to a BMP (Windows Bitmap) file. I found a possible bug in the file write operation. The problem apear to be when the char 'ÿ' is written to file. Here is a small code to reproduce the problem (this works fine on Linux but not on Windows 98SE): FILE* file=fopen("file.txt","wb"); //The problem apears after the second putc putc('A',file); register FXint c=putc('ÿ',file); if(c==EOF) { printf("ERROR\n"); } if(file) { fclose(file); } I'm using MINGW 3.3.1 to compile this code. I've also tried with MINGW 3.2 (old) and the same problem apears. -- ################################# # Cristiano Costa Neves # AQX Instrumentação. # Engenharia em Aquisição de Dados # Site: www.aqx.com.br # Email: in...@aq... # Fone: (48) 2107-2724 # Fax: (48) 333-3745 ################################# |