Message1405

Author pekka.klarck
Recipients
Date 2007-01-31.18:36:27
SpamBayes Score
Marked as misclassified
Message-id
In-reply-to
Content
Charles's comment in the original bug report:

"""I'm not sure how to detect if a filesystem is case sensitive in java, so I opened a new bug(#1648449) for normpath."""

If that's the case I'd recommend following approach.

1) First check how CPython does this. If their solution is possible also in Jython take it into use.

2) I think it would be pretty ok if normcase would work correctly in all major platforms (Posix, Mac, Windows) where the correct behaviour is known. 

3) For other platforms I see following two possibilities.

3.1) Just leave the path unchanged and document this behaviour.

3.2) When installing Jython or running it for the first time test the casesensitivity by creating a file like 'JYTHONTEST' into system temp directory and trying to read it with name 'jythontest'. If reading succeeds set some property indicating that platform is caseinsensitive to true and if reading fails (or there's any exception anywhere) set it to false.
History
Date User Action Args
2008-02-20 17:17:40adminlinkissue1648449 messages
2008-02-20 17:17:40admincreate