From: Emmanuel S. [ES] <ma...@ei...> - 2007-12-08 15:11:08
|
use strace on linux to see the system calls. Manu > -----Original Message----- > From: gob...@li... > [mailto:gob...@li...] On > Behalf Of Eric Bezault > Sent: Saturday, December 08, 2007 6:42 AM > To: Colin Paul Adams > Cc: gob...@li... > Subject: Re: [gobo-eiffel-develop] Perverse bug with gec? > > 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 > > -------------------------------------------------------------- > ----------- > SF.Net email is sponsored by: > Check out the new SourceForge.net Marketplace. > It's the best place to buy or sell services for just about > anything Open Source. > http://sourceforge.net/services/buy/index.php > _______________________________________________ > gobo-eiffel-develop mailing list > gob...@li... > https://lists.sourceforge.net/lists/listinfo/gobo-eiffel-develop > |