From: Eric B. <er...@go...> - 2007-12-08 15:26:17
|
Colin Paul Adams wrote: >>>>>> "Eric" == Eric Bezault <er...@go...> writes: > > > Eric> I can see one difference between ISE and Gobo when opening > Eric> the file under Linux/Unix. When opening a binary file, Gobo > Eric> does "rb" (same as Windows) whereas ISE does "r" for the > Eric> mode. I guess this is the problem. I will fix that and we > Eric> will see how it goes. In the meantime I'd be interested if > Eric> you could have a look at the manpage for fopen() on Linux > Eric> and see if there is anything specified for "rb" (like "open > Eric> the file in case-insensitive mode" ;-)). > > It says: > > " The mode string can also include the letter b either as a last > character or as a character between the characters in any of the two- > character strings described above. This is strictly for compatibility > with C89 and has no effect; the b is ignored on all POSIX conform- > ing systems, including Linux. (Other systems may treat text files and > binary files differently, and adding the b may be a good idea if > you do I/O to a binary file and expect that your program may be ported > to non-Unix environments.) > " > OK. Just to double-check, can you try to remove the "b"s anyway in function 'file_open_mode' in $GOBO/tool/gec/runtime/c/eif_file.c and recompile your program (no need to recompile gec itself)? Perhaps the "compatibility" goes up to the point where filenames are considered case-insensitive. Who knows. -- Eric Bezault mailto:er...@go... http://www.gobosoft.com |