Return-Path: X-Original-To: apmail-couchdb-dev-archive@www.apache.org Delivered-To: apmail-couchdb-dev-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 5ED85DF75 for ; Tue, 30 Oct 2012 20:20:14 +0000 (UTC) Received: (qmail 56596 invoked by uid 500); 30 Oct 2012 20:20:13 -0000 Delivered-To: apmail-couchdb-dev-archive@couchdb.apache.org Received: (qmail 56563 invoked by uid 500); 30 Oct 2012 20:20:13 -0000 Mailing-List: contact dev-help@couchdb.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@couchdb.apache.org Delivered-To: mailing list dev@couchdb.apache.org Received: (qmail 56555 invoked by uid 99); 30 Oct 2012 20:20:13 -0000 Received: from arcas.apache.org (HELO arcas.apache.org) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 30 Oct 2012 20:20:13 +0000 Date: Tue, 30 Oct 2012 20:20:13 +0000 (UTC) From: "Dave Cottlehuber (JIRA)" To: dev@couchdb.apache.org Message-ID: <121786219.46545.1351628413662.JavaMail.jiratomcat@arcas> Subject: [jira] [Updated] (COUCHDB-85) couch_server:all_databases() does not work on file name case-insensitive OS, such as Windows. MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 [ https://issues.apache.org/jira/browse/COUCHDB-85?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Dave Cottlehuber updated COUCHDB-85: ------------------------------------ Fix Version/s: 1.3 > 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 > Assignee: Dave Cottlehuber > Priority: Blocker > Fix For: 1.0, 1.3 > > 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. If you think it was sent incorrectly, please contact your JIRA administrators For more information on JIRA, see: http://www.atlassian.com/software/jira