wilyfans
[Top] [All Lists]

Re: wily 0.13.42

To: Ian Broster <>
Subject: Re: wily 0.13.42
From: Gary Capell <>
Date: Fri, 7 Apr 2006 17:04:30 +1000
On Fri, Apr 07, 2006 at 07:57:11AM +0200, Ian Broster wrote:
> 
> >I'm not sure this is a bug we want to fix?  I'm guessing that this
> >is because (not surprisingly) some bits of /bin/echo aren't valid
> >UTF8.
> 
> I see.
> 
> However it does seem to break a rather fundamental assumption that a load  
> then save will not corrupt the file.

Agreed.  Hence the "ReadOnly" suggestion.

> Most text editors seem ok with binry files (presumably because the don't  
> do UTF at all); despite the technical difficulties of doing so in wily, I  
> think it's worth another think.
> 
> >we'd have to maintain two copies of the file:
> >the version with valid UTF, and the original version with invalid
> >UTF.
> 
> Is there no way to have a raw representation in memory and a best-effort  
> UTF8 render/manipulation?

Of course there's a way (probably _lots_ of ways) to do it.
The questions are:
 * do any of the ways have negligible impact on code complexity
        and efficiency (i.e. not requiring duplicate work on
        two copies of buffers)?

 * do the costs (time to design/write, added time for future
        work, efficiency cost, ... ) outweight the benefit
        (can edit by hand binary files)?  

-- 
Gary Capell <>

<Prev in Thread] Current Thread [Next in Thread>
Admin

Disclaimer: Neither Andrew Taylor nor the University of NSW School of Computer and Engineering take any responsibility for the contents of this archive. It is purely a compilation of material sent by many people to the birding-aus mailing list. It has not been checked for accuracy nor its content verified in any way. If you wish to get material removed from the archive or have other queries about the archive e-mail Andrew Taylor at this address: andrewt@cse.unsw.EDU.AU