Path: news.cs.au.dk!not-for-mail From: "Sascha Kimmel" Newsgroups: comp.lang.beta Subject: RE: BUG: Windows does not treat filenames case-sensitive!! Date: 21 Mar 2000 10:08:06 -0000 Organization: University of Aarhus, Department of Computer Science (DAIMI) Lines: 77 Approved: mailtonews@cs.au.dk Distribution: world Message-ID: <20000321100806.22411.qmail@noatun.mjolner.dk> Reply-To: "Sascha Kimmel" NNTP-Posting-Host: daimi.cs.au.dk X-Trace: xinwen.cs.au.dk 953633949 14247310 255.255.255.255 (21 Mar 2000 10:19:09 GMT) X-Complaints-To: news@cs.au.dk NNTP-Posting-Date: 21 Mar 2000 10:19:09 GMT Xref: news.cs.au.dk comp.lang.beta:12271 Hi, > -----Original Message----- > From: Stephan Erbs Korsholm [mailto:sek@geri.mjolner.dk] > Sent: Tuesday, March 21, 2000 9:40 AM > To: usergroup@mjolner.dk > Subject: Re: BUG: Windows does not treat filenames case-sensitive!! > > > > Hi, > > Sascha Kimmel writes, > > "I found a BUG: > > G:\Projekte\hostDirector>beta hostdirector > Mjølner BETA Compiler version 5.4.5 (711) for WinNT/Win95 (i386) (MS) > Target machine type nti_ms > Building dependency graph for: 'hostdirector' ... > Parsing: 'hostdirector' > Parsing: 'httpfuncs' > > Filename found which only differs in case. > Previously found: G:\Projekte\hostDirector\hostdirector > Now found: G:\Projekte\hostDirector\hostDirector > Filenames must be unique regardless of case. > > This error must not happen on any WIndows system, because Windows > treats filenames the same regardless of the case! > > Please fix this error in the next release." > > This is not a bug, but a consequence of a well considered design > decision. In order to support multi platform development the BETA > fragment system require that filenames are unique regardless of case. What about "MDBODY nti" for example? You could implement this platform-independent, as you already have done implementing the directory character, e.g. ":" on a Mac, "/" on Unix, "\" on Windows. > Since certain platforms support case-sensitive filenames we have to > enforce this on all platforms. ....see above... > In this particular case your program above might not compile on UNIX, > since the 'hostdirector.bet' fragment might be saved as > 'hostDirector.bet', in which case the fragment system would complain > that the file didn't exist. SOME people might do it this way, I would force all files to lowercase when moving them to a UNIX platform, so the problem WOULD not occur (I have to use lowercase characters in every ORIGIN and INCLUDE as well, of course!) What if I save the file as demo.BET on Windows, include it in a BETA program via "INCLUDE 'demo'" and store it on the UNIX machine as "demo.BET" or - "demo.BeT" or something like that. Will it work? BTW has someone tested my RAS implementation for BETA on a Windows NT or WIndows 2000 machine? I would be interested to know if it works there! http://developer.tricos.com Regards, Sascha Kimmel