Re: [fltk.general] PNG file corrupted by ASCII conversion

2012-05-07 Thread Edzard Egberts
Greg Ercolano schrieb: On 05/04/12 02:36, MacArthur, Ian (SELEX GALILEO, UK) wrote: Hmpf - the default is text and I know this, but forgot to take care about. Very stupid, of course it works now... For what it's worth, I just use rb and wb regardless of platform since the *nix versions

Re: [fltk.general] PNG file corrupted by ASCII conversion

2012-05-07 Thread MacArthur, Ian (SELEX GALILEO, UK)
I don't think, Steve Jobs will come back to save Apple a third time. Though I guess we'd be pretty impressed if he did. And perhaps a little surprised... and a bit freaked out... Anyway Windows 8 will be an operating system for mobile phones (that's funny, we will need to boot and shutdown

[fltk.general] PNG file corrupted by ASCII conversion

2012-05-04 Thread Edzard Egberts
I'm not sure, whether this problem comes from fltk, but maybe someone knows it: I'm using a write_png() function and it works under Linux. But after compiling it for MS-Windows, the software also writes png-files, but it's not possible to open them - PNG file corrupted The only difference

Re: [fltk.general] PNG file corrupted by ASCII conversion

2012-05-04 Thread Albrecht Schlosser
On 04.05.2012 09:53, Edzard Egberts wrote: I'm not sure, whether this problem comes from fltk, but maybe someone knows it: I'm using a write_png() function and it works under Linux. But after compiling it for MS-Windows, the software also writes png-files, but it's not possible to open them

Re: [fltk.general] PNG file corrupted by ASCII conversion

2012-05-04 Thread Edzard Egberts
Albrecht Schlosser schrieb: On 04.05.2012 09:53, Edzard Egberts wrote: I'm not sure, whether this problem comes from fltk, but maybe someone knows it: Where could the problem come from? Maybe related to utf8? How to go on? How did you open the file? On Windows you must open a file explicitly

Re: [fltk.general] PNG file corrupted by ASCII conversion

2012-05-04 Thread MacArthur, Ian (SELEX GALILEO, UK)
Hmpf - the default is text and I know this, but forgot to take care about. Very stupid, of course it works now... For what it's worth, I just use rb and wb regardless of platform since the *nix versions ignore the b anyway... SELEX Galileo Ltd Registered Office: Sigma House, Christopher

Re: [fltk.general] PNG file corrupted by ASCII conversion

2012-05-04 Thread Edzard Egberts
MacArthur, Ian (SELEX GALILEO, UK) schrieb: Hmpf - the default is text and I know this, but forgot to take care about. Very stupid, of course it works now... For what it's worth, I just use rb and wb regardless of platform since the *nix versions ignore the b anyway... This doesn't seem to

Re: [fltk.general] PNG file corrupted by ASCII conversion

2012-05-04 Thread MacArthur, Ian (SELEX GALILEO, UK)
For what it's worth, I just use rb and wb regardless of platform since the *nix versions ignore the b anyway... This doesn't seem to work for me. I'm writing scientific software for 1,5 years now and all the files had been textfiles. So normally the same code works for Linux and

Re: [fltk.general] PNG file corrupted by ASCII conversion

2012-05-04 Thread Greg Ercolano
On 05/04/12 02:36, MacArthur, Ian (SELEX GALILEO, UK) wrote: Hmpf - the default is text and I know this, but forgot to take care about. Very stupid, of course it works now... For what it's worth, I just use rb and wb regardless of platform since the *nix versions ignore the b anyway...