Article View: bionet.software.acedb
Article #69Re: Off-by-one in $obj->asGif after upgrading to ACEDB_4.9s
From: Ed Griffiths
Date: Wed, 10 Sep 2003 10:25
Date: Wed, 10 Sep 2003 10:25
29 lines
2659 bytes
2659 bytes
Morten, > In that case, as already posted on this list, following patch to > Ace::Object.pm will do the job: > > Object.pm line 1764, Aceperl 1.86: > - return unless ($bytes, $trim) = $data=~m!^// (\d+) bytes\n(.+)!sm; > + return unless ($bytes, $trim) = $data=~m!^// (\d+) bytes\n\x0?(.+)!sm; > > Not necessary strictly correct place to strip the extra NULL-byte here, > just before output, but it works and I can now use versions of AceDB >= > 4.9_s. > > (Because of Perl autosplit, the patch should be made in the AcePerl > source tree, which should then be reinstalled.) I have exchanged emails with Lincoln and he has put code into perl to handle both datastreams so all should be well now. cheers Ed -- ------------------------------------------------------------------------ | Ed Griffiths, Acedb development, Informatics Group, | | Wellcome Trust Sanger Institute, Wellcome Trust Genome Campus, | | Hinxton, Cambridge CB10 1SA, UK | | | | email: edgrif@sanger.ac.uk Tel: +44-1223-494780 Fax: +44-1223-494919 | ------------------------------------------------------------------------
Technical Details
Message-ID:
<3F5EFBFB.D25AAECE@sanger.ac.uk>Path:
arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!newsfeed.stanford.edu!bloom-beacon.mit.edu!hgmp.mrc.ac.uk!net.bio.netReferences:
<Pine.LNX.4.44.0309091750320.22135-100000@untamo.ngb.se>Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: f6d40,196502b48d6a5094 X-Google-Attributes: gidf6d40,public X-Google-ArrivalTime: 2003-09-10 03:25:07 PST Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!newsfeed.stanford.edu!bloom-beacon.mit.edu!hgmp.mrc.ac.uk!net.bio.net From: Ed Griffiths <edgrif@sanger.ac.uk> Newsgroups: bionet.software.acedb Subject: Re: Off-by-one in $obj->asGif after upgrading to ACEDB_4.9s Date: 10 Sep 2003 11:25:07 +0100 Organization: Sanger Institute Lines: 30 Sender: mod-ace@hgmp.mrc.ac.uk Approved: BIOSCI Approval Key <biosci-approval-key@net.bio.net> Message-ID: <3F5EFBFB.D25AAECE@sanger.ac.uk> References: <Pine.LNX.4.44.0309091750320.22135-100000@untamo.ngb.se> NNTP-Posting-Host: mercury.hgmp.mrc.ac.uk Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Trace: niobium.hgmp.mrc.ac.uk 1063189507 288 193.62.192.80 (10 Sep 2003 10:25:07 GMT) X-Complaints-To: news@net.bio.net NNTP-Posting-Date: Wed, 10 Sep 2003 10:25:07 +0000 (UTC) X-Original-To: bionet-software-acedb@net.bio.net X-Accept-Language: en X-Auth: PGPMoose V1.1 PGP bionet.software.acedb iQCVAwUAP178AqCIqsWvyF5FAQHp/QQAsTIowKUlDZ1y50iLb8eV/FxEFCFf6GGN w0tpN8P+Yej/jSN05rHingA99XNNR5tubGdlrGw+WtGMAUa/bKmV0r7ThQuulZqB 8eBbIoYmW7PXNPFdvIav3jSK3VdUZavtFX82xMjUaJxSxYm8zDv5u3kos6lvCCkZ oAGHJm/+vm0= =nJyE