From: Eric B. <er...@go...> - 2007-12-08 14:42:17
|
Eric Bezault wrote: > Colin Paul Adams wrote: >>>>>>> "Eric" == Eric Bezault <er...@go...> writes: >> >> Eric> If you were using files the Gobo way, you would get "False" >> Eric> with the following code: >> >> Eric> local l_file: KL_TEXT_INPUT_FILE do create l_file.make >> Eric> ("dummy") l_file.open_read print (l_file.is_open_read) >> >> Eric> However, using files the ISE way, you will not get the >> Eric> exception as expected. >> >> I don't really understand any of that: >> >> 1) This is all Gobo code, using the file resolver. >> 2) How is gec managing to open the upper-case file in the first place, >> when it has a lower-case name? > > Ah, you said that you didn't get the error message, but > I didn't realize that it meant that it was actually able > to read the file. I have no idea why it manages to open > the file. And I can't try it on a small example since I > don't have access to a Linux or other case-sensitive > operating system. It's too bad that SourceForge does not > offer its compile-farm anymore. As far as I can see, the > code ends up calling fopen(). I don't know if there is > an option to make it case-insensitive or case_sensitive > at will. I can see one difference between ISE and Gobo when opening the file under Linux/Unix. When opening a binary file, Gobo does "rb" (same as Windows) whereas ISE does "r" for the mode. I guess this is the problem. I will fix that and we will see how it goes. In the meantime I'd be interested if you could have a look at the manpage for fopen() on Linux and see if there is anything specified for "rb" (like "open the file in case-insensitive mode" ;-)). -- Eric Bezault mailto:er...@go... http://www.gobosoft.com |