From: Hans-Bernhard Broeker Newsgroups: comp.os.msdos.djgpp Subject: Re: dirent->d_name returns lowercase? Date: 26 Jun 2003 09:35:52 GMT Organization: Aachen University of Technology (RWTH) Lines: 36 Message-ID: References: <3ef8c2c7$0$150$9b622d9e AT news DOT freenet DOT de> <2593-Wed25Jun2003075056+0300-eliz AT elta DOT co DOT il> <3ef9ebcd$0$149$9b622d9e AT news DOT freenet DOT de> NNTP-Posting-Host: acp3bf.physik.rwth-aachen.de X-Trace: nets3.rz.RWTH-Aachen.DE 1056620152 20052 137.226.32.75 (26 Jun 2003 09:35:52 GMT) X-Complaints-To: abuse AT rwth-aachen DOT de NNTP-Posting-Date: 26 Jun 2003 09:35:52 GMT Originator: broeker@ To: djgpp AT delorie DOT com DJ-Gateway: from newsgroup comp.os.msdos.djgpp Reply-To: djgpp AT delorie DOT com deckerben wrote: > I really understand the DOS issue. But this would not be true under NT > systems, where true filename cases are reported correctly. I'm not all that sure about "are". They *can* be, just like they can be under 9x. Whether they are or not is a configuration option. E.g. the 9x versions of Explorer let you select whether to show all-uppercase names in all-uppercase or all-lowercase. I've yet to see anyone who actually toggled that option from its default lower case. > Fooling with this causes problems. I was wondering why during some > Python distutil builds, it was *supposed* to create an upper-case > subdirectory, only to create a lower-case one, etc. I was banging my > head wondering why the glob test was failing (I thought something > was *really* wrong). Some *is* really wrong, but I disagree that the behaviour of DJGPP is. It's the expectations hard-coded into that glob test that simply are false, for the case of any DOS-style platform up to and including both OS/2 and all versions of Windows. It really should notice that it's on a system where filename case is usually preserved, but *not* at all respected. > I am recommending all NT-based PythonD users to set FNCASE=y. Then you should als recommend they be prepared for some rather strange behaviour in all kinds of tools. Trying to depend on the case of filenames in any way is usually a futile exercise on Windows. -- Hans-Bernhard Broeker (broeker AT physik DOT rwth-aachen DOT de) Even if all the snow were burnt, ashes would remain.