From couchdb-dev-return-635-apmail-incubator-couchdb-dev-archive=incubator.apache.org@incubator.apache.org Wed Jun 25 06:39:36 2008 Return-Path: Delivered-To: apmail-incubator-couchdb-dev-archive@locus.apache.org Received: (qmail 21976 invoked from network); 25 Jun 2008 06:39:36 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 25 Jun 2008 06:39:36 -0000 Received: (qmail 15639 invoked by uid 500); 25 Jun 2008 06:39:37 -0000 Delivered-To: apmail-incubator-couchdb-dev-archive@incubator.apache.org Received: (qmail 15607 invoked by uid 500); 25 Jun 2008 06:39:37 -0000 Mailing-List: contact couchdb-dev-help@incubator.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: couchdb-dev@incubator.apache.org Delivered-To: mailing list couchdb-dev@incubator.apache.org Received: (qmail 15596 invoked by uid 99); 25 Jun 2008 06:39:37 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 24 Jun 2008 23:39:37 -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; Wed, 25 Jun 2008 06:38:55 +0000 Received: from brutus (localhost [127.0.0.1]) by brutus.apache.org (Postfix) with ESMTP id 00376234C147 for ; Tue, 24 Jun 2008 23:38:44 -0700 (PDT) Message-ID: <1242493125.1214375924986.JavaMail.jira@brutus> Date: Tue, 24 Jun 2008 23:38:44 -0700 (PDT) From: "Li Zhengji (JIRA)" To: couchdb-dev@incubator.apache.org Subject: [jira] Updated: (COUCHDB-85) couch_server:all_databases() does not work on file name case-insensitive OS, such as Windows. In-Reply-To: <1530435922.1214270385031.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/COUCHDB-85?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Li Zhengji updated COUCHDB-85: ------------------------------ Component/s: Database Core > couch_server:all_databases() does not work on file name case-insensitive OS, such as Windows. > --------------------------------------------------------------------------------------------- > > Key: COUCHDB-85 > URL: https://issues.apache.org/jira/browse/COUCHDB-85 > Project: CouchDB > Issue Type: Bug > Components: Database Core > Affects Versions: 0.8 > Environment: Windows XP, Erlang/OTP R12B-3 > Reporter: Li Zhengji > Original Estimate: 2h > Remaining Estimate: 2h > > "Filename -- Root": the "--" here will not work as we want obviously. For example, Filename = "e:/aa.couch", Root = "E:/", then (Filename -- Root) = "eaa.couch". Not to say "/" and "\" on Windows. > "--" should not be used here. The simple way to do this would be: delete(FileName, 1, length(Root)). -- This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online.