Return-Path: Delivered-To: apmail-harmony-dev-archive@www.apache.org Received: (qmail 29363 invoked from network); 30 Sep 2008 08:43:31 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 30 Sep 2008 08:43:31 -0000 Received: (qmail 78420 invoked by uid 500); 30 Sep 2008 08:43:27 -0000 Delivered-To: apmail-harmony-dev-archive@harmony.apache.org Received: (qmail 78395 invoked by uid 500); 30 Sep 2008 08:43:27 -0000 Mailing-List: contact dev-help@harmony.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@harmony.apache.org Delivered-To: mailing list dev@harmony.apache.org Received: (qmail 78384 invoked by uid 99); 30 Sep 2008 08:43:27 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 30 Sep 2008 01:43:27 -0700 X-ASF-Spam-Status: No, hits=-0.0 required=10.0 tests=SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: domain of t.p.ellison@gmail.com designates 66.249.92.175 as permitted sender) Received: from [66.249.92.175] (HELO ug-out-1314.google.com) (66.249.92.175) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 30 Sep 2008 08:42:26 +0000 Received: by ug-out-1314.google.com with SMTP id j30so797983ugc.22 for ; Tue, 30 Sep 2008 01:43:00 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:message-id:date:from :user-agent:mime-version:to:subject:references:in-reply-to :x-enigmail-version:content-type:content-transfer-encoding; bh=4l4r4tDPG1ohdHCmMt0jmbJ2AEK1wOQ++J3QMxX8I6g=; b=L8Ky5lZAkgX5l/zbb7Bv1MFsV6oL36vSEKqcaktGEBy9ShtYqukyvh5AJdfX99iTr3 m+t80Lk+43I41qWG49FDNw/YkfqqtSZ4uEhVmeV6ro8YDWZlM2fssRVNqfOWi2B6pf6j pPvtEqxHW5SSLuOZWfKgqBQFf1vBf37eWzB4o= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:date:from:user-agent:mime-version:to:subject:references :in-reply-to:x-enigmail-version:content-type :content-transfer-encoding; b=KIDZ47H//L8wCe6KH+mu+NrKdzsU9U7dv2kXRBzxMTk4ATzU9iG8G62O+5+5sAG/bE t/IOcyqCl0K4fj+YGnytteBjzUPwBw1OzGmd3j3BGN+H+QEfyV+iA1dRt8SEm2CVwKOW Sr5g7CvT3j4Soyh34+dnfXY4SpSqOuT/lEeGY= Received: by 10.210.43.10 with SMTP id q10mr7604233ebq.64.1222764179918; Tue, 30 Sep 2008 01:42:59 -0700 (PDT) Received: from ?9.20.183.179? (blueice4n2.uk.ibm.com [195.212.29.92]) by mx.google.com with ESMTPS id g11sm2393614gve.8.2008.09.30.01.42.58 (version=SSLv3 cipher=RC4-MD5); Tue, 30 Sep 2008 01:42:58 -0700 (PDT) Message-ID: <48E1E68E.5070102@gmail.com> Date: Tue, 30 Sep 2008 09:42:54 +0100 From: Tim Ellison User-Agent: Thunderbird 2.0.0.17 (Windows/20080914) MIME-Version: 1.0 To: dev@harmony.apache.org Subject: Re: [jira] Created: (HARMONY-5987) [classlib][luni] - different behavior with RI when file path contains "\\" in Linux References: <1367711648.1222235264363.JavaMail.jira@brutus> <48D9E27C.20400@gmail.com> In-Reply-To: <48D9E27C.20400@gmail.com> X-Enigmail-Version: 0.95.7 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit X-Virus-Checked: Checked by ClamAV on apache.org Regis wrote: > It seems intended to be, but I'm not sure. I think it's a great feature > when porting the windows depended code("\\" in path name) to linux, but > there is potential problem, how to reference a file which name contians > "\\" on linux? And this different may cause surprise when some > applications depends on the behavior of RI. > > Any comments/suggestions? I think we need to change to allow \ to be passed through as part of the file name on Linux. Regards, Tim > Regis Xu (JIRA) wrote: >> [classlib][luni] - different behavior with RI when file path contains >> "\\" in Linux >> ----------------------------------------------------------------------------------- >> >> >> Key: HARMONY-5987 >> URL: https://issues.apache.org/jira/browse/HARMONY-5987 >> Project: Harmony >> Issue Type: Bug >> Components: Classlib >> Affects Versions: 5.0M7 >> Reporter: Regis Xu >> Fix For: 5.0M8 >> >> >> Consider the test: >> >> File file = new File("d1\\d2"); >> file.mkdirs(); >> >> RI create a directory named "d1\d2", while Harmony create two >> directories "d1" and "d1/d2", seems RI doesn't covert windows file >> separator char "\\" to system separator char on Linux, and >> spec says nothing about it. I quickly navigate the source, found we >> have a method fixSlashes in java.io.File, which convert "\\" or "/" to >> system separator char, so it may be intended or a feature of harmony? >> >