Return-Path: Delivered-To: apmail-commons-issues-archive@locus.apache.org Received: (qmail 77889 invoked from network); 25 Aug 2008 15:58:07 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 25 Aug 2008 15:58:07 -0000 Received: (qmail 64484 invoked by uid 500); 25 Aug 2008 15:58:03 -0000 Delivered-To: apmail-commons-issues-archive@commons.apache.org Received: (qmail 64327 invoked by uid 500); 25 Aug 2008 15:58:03 -0000 Mailing-List: contact issues-help@commons.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: issues@commons.apache.org Delivered-To: mailing list issues@commons.apache.org Received: (qmail 64297 invoked by uid 99); 25 Aug 2008 15:58:03 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 25 Aug 2008 08:58:03 -0700 X-ASF-Spam-Status: No, hits=-2000.0 required=10.0 tests=ALL_TRUSTED X-Spam-Check-By: apache.org Received: from [140.211.11.140] (HELO brutus.apache.org) (140.211.11.140) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 25 Aug 2008 15:57:14 +0000 Received: from brutus (localhost [127.0.0.1]) by brutus.apache.org (Postfix) with ESMTP id 69B53234C1B3 for ; Mon, 25 Aug 2008 08:57:44 -0700 (PDT) Message-ID: <155793882.1219679864431.JavaMail.jira@brutus> Date: Mon, 25 Aug 2008 08:57:44 -0700 (PDT) From: "Matt Benson (JIRA)" To: issues@commons.apache.org Subject: [jira] Commented: (IO-171) IO assumes there are only two OSes: Windows and Unix In-Reply-To: <1828763199.1211715116638.JavaMail.jira@brutus> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-Virus-Checked: Checked by ClamAV on apache.org [ https://issues.apache.org/jira/browse/IO-171?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12625409#action_12625409 ] Matt Benson commented on IO-171: -------------------------------- wow. Round and round. Maybe we should leave things as-is, and provide runtime tests that require a writable location and test the case-sensitivity of a given volume at RT. Maybe that's useful and maybe it isn't, but at least we can be explicit about what we're doing and provide better guarantees. Note: AFAICT, you must know (or be able to create) an existing file in order to make Java 5 on OS X tell you via canonical files whether the disk is case-sensitive. I don't know what that actually indicates is going on in the java.io.File implementation, obviously. > IO assumes there are only two OSes: Windows and Unix > ---------------------------------------------------- > > Key: IO-171 > URL: https://issues.apache.org/jira/browse/IO-171 > Project: Commons IO > Issue Type: Bug > Reporter: Sebb > Priority: Minor > > Just noticed that IO assumes systems are either: > Windows-like: > * File.separatorChar = \ > * Case-insensitive matching > or > Unix-like: > * File.separatorChar = / > * Case-sensitive matching > It may well be true that there are only two different file sepator characters, but it is not true that all non-Windows systems use case-sensitive matching. > For example, OpenVMS uses a file separator char of /, but originally only supported case-insensitive file names (always shown as uppercase). > Current versions of OpenVMS support both upper and lower-case; the default is to use case-insenstive matching (and upper case names). > Perhaps the IOCase.SYSTEM constant needs to have an "Unknown" or "Variable" setting for this; it would then be an error to use IOCase.SYSTEM to determine the case sensitivity. -- This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online.