Return-Path: Delivered-To: apmail-harmony-dev-archive@www.apache.org Received: (qmail 47622 invoked from network); 21 May 2009 10:30:56 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.3) by minotaur.apache.org with SMTP; 21 May 2009 10:30:56 -0000 Received: (qmail 36748 invoked by uid 500); 21 May 2009 10:31:08 -0000 Delivered-To: apmail-harmony-dev-archive@harmony.apache.org Received: (qmail 36680 invoked by uid 500); 21 May 2009 10:31:08 -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 36669 invoked by uid 99); 21 May 2009 10:31:08 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 21 May 2009 10:31:08 +0000 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 oliver.deakin@googlemail.com designates 209.85.219.158 as permitted sender) Received: from [209.85.219.158] (HELO mail-ew0-f158.google.com) (209.85.219.158) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 21 May 2009 10:30:57 +0000 Received: by ewy2 with SMTP id 2so1081089ewy.36 for ; Thu, 21 May 2009 03:30:35 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=googlemail.com; s=gamma; h=domainkey-signature:received:received:message-id:date:from :user-agent:mime-version:to:subject:references:in-reply-to :content-type:content-transfer-encoding; bh=tIgb86LdfPlkLKI3z5Otv/t4DFWtWzLt1l4HP1vWVd0=; b=sfiNRxREtm9CuBjXaNu6SoPXKx4x6hskitYJUao+GzrBEw2bxBMo0Zsej197EcgRSl R234FJ555tQAMf+urcsHILx2Jwm8HftfD1Dht94ZYJAy6UGnbfLNBjW3S/b7cU5kQnww eJJGRQGmpF4FOQZvinq/7aQSLWNTApolF3Yjg= DomainKey-Signature: a=rsa-sha1; c=nofws; d=googlemail.com; s=gamma; h=message-id:date:from:user-agent:mime-version:to:subject:references :in-reply-to:content-type:content-transfer-encoding; b=l2Lgfs1UfzsMREKmIQsYBu08Xeg+77ijdU2kEUI1Sy7DPhsIhzzxmShr/NSzep6bNn flf5+aNCFChm9nFBRwO5qMAkEWc3sL57CjXKV9nuw2tCGWz/44gOkoG9nAp67kJ6iXVF SOCI4n2b1ZxL3oRA3lb2NYuRAvxCfXE6397bI= Received: by 10.210.137.17 with SMTP id k17mr839623ebd.99.1242901835897; Thu, 21 May 2009 03:30:35 -0700 (PDT) Received: from ?9.20.183.159? (blueice2n1.uk.ibm.com [195.212.29.75]) by mx.google.com with ESMTPS id 28sm1398712eye.36.2009.05.21.03.30.31 (version=TLSv1/SSLv3 cipher=RC4-MD5); Thu, 21 May 2009 03:30:32 -0700 (PDT) Message-ID: <4A152D4A.3040705@googlemail.com> Date: Thu, 21 May 2009 11:30:34 +0100 From: Oliver Deakin User-Agent: Thunderbird 2.0.0.21 (Windows/20090302) MIME-Version: 1.0 To: dev@harmony.apache.org Subject: Re: [classlib][build] Need depends.properties to be in ASCII on non-ASCII platforms References: <4A141951.2030302@googlemail.com> <3b3f27c60905201828n29eb4160wbd0360abf1892e3@mail.gmail.com> In-Reply-To: <3b3f27c60905201828n29eb4160wbd0360abf1892e3@mail.gmail.com> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-Virus-Checked: Checked by ClamAV on apache.org On z/OS, svn (or rather svnkit - the native svn client doesn't work on z/OS) automatically converts text/plain files into the native encoding at checkout, which is generally a good thing because we want at least the native code to be in native encoding. There is only one exception I have come across - the svn client seems to check the header tag in xml files for an encoding property. If it is specified UTF-8 (as in our build files) svn leaves the files in the UTF-8. If the encoding is not specified, svn will convert the xml file to the native encoding. I have also tested the rumoured svnkit:charset and svn:charset properties, but sadly they do not seem to work either. I'm starting to think that (2) from my original mail may be the best solution - although it's a little ugly, at least it only gets run at the fetch-depends stage. Regards, Oliver Nathan Beyer wrote: > Does SVN really do anything to the encoding of a text/plain file? I > thought the only thing SVN did to files was swap EOL sequences. When > using SVN across Win, Linux and Mac on a UTF-8 encoded file, I've > always had the encoding maintained, even though each OS uses a > different default encoding. I don't suppose this is a z/OS quirk, is > it? > > On Wed, May 20, 2009 at 9:53 AM, Oliver Deakin > wrote: > >> Hi all, >> >> I have an issue building on z/OS - a fresh checkout from svn gives us >> depends.properties in the default platform encoding (EBCDIC). However, when >> we come to load these properties in depends-common.xml, using the >> loadproperties Ant task, they are assumed to be in ASCII encoding. The >> "encoding" property of the Ant task does not actually work correctly (I >> think this is a bug in Ant which I intend to raise) so it is no help. I was >> wondering if anybody has any ideas about the best way to tackle this >> problem? Really I'd like to tag the file in some way so that it is checked >> out of Subversion in the correct encoding immediately, but there does not >> seem to be a way to do this. I have come up with a few options: >> >> 1) Mark the file binary in svn - not a good solution, means losing revision >> history, not getting proper diffs etc. >> 2) Use the Ant copy task with it's outputencoding property set to ISO-8859-1 >> to copy the file to another location, and then use that copy to load the >> properties from. Delete the file after it has been used (patch would be like >> [1]). Unfortunately this means that when we run the fetch-depends target we >> see a lot of copy/delete output (setting verbose="false" for these tasks >> does not seem to hide the output completely). >> 3) Same as (2), but don't delete the file afterwards. There would only be >> one initial copy, then no further copies unless the file is modified. >> However, this does mean that these is an extra file left in the make >> directory, which I don't like the idea of. >> >> I'd choose to go with (2), but thought I'd see if anyone has any other ideas >> before I commit the change. >> >> Regards, >> Oliver >> >> >> [1] >> Index: depends-common.xml >> =================================================================== >> --- depends-common.xml (revision 775934) >> +++ depends-common.xml (working copy) >> @@ -25,7 +25,8 @@ >> where possible. >> >> >> - >> + > tofile="${basedir}/make/depends.properties.ascii" >> outputencoding="ISO-8859-1" /> >> + > encoding="ISO-8859-1"> >> >> >> >> @@ -34,7 +35,8 @@ >> >> >> >> - >> + >> + >> >> >> >> >> -- >> Oliver Deakin >> Unless stated otherwise above: >> IBM United Kingdom Limited - Registered in England and Wales with number >> 741598. Registered office: PO Box 41, North Harbour, Portsmouth, Hampshire >> PO6 3AU >> >> >> > > -- Oliver Deakin Unless stated otherwise above: IBM United Kingdom Limited - Registered in England and Wales with number 741598. Registered office: PO Box 41, North Harbour, Portsmouth, Hampshire PO6 3AU