[svn.haxx.se] · SVN Dev · SVN Users · SVN Org · TSVN Dev · TSVN Users · Subclipse Dev · Subclipse Users · this month's index

Re: Ascii/binary detection.

From: Branko Èibej <brane_at_xbc.nu>
Date: 2001-08-01 22:27:33 CEST

Alan Shutko wrote:

>cmpilato@collab.net writes:
>
>>The point is that some work needs to be done to create the
>>Subversion Binariness Heuristic, and your suggestions are good ones.
>>
>
>I don't have any specific suggestions here, but it would be good when
>deciding the heuristic to take a bunch of non-english text files
>(esp. CJK in various encodings) and try to make sure they aren't
>always seen as binary.
>
I agree. But if we can't be sure, we have to default to binary, so that
even if we're wrong, the file doesn't get munged during commit.

>Extremely long lines also needs some judgement, because of people who
>create text files where they use a newline per paragraph.
>
True, that's why I suggested checking line length as a last resort. If
we're cautious and mark the file binary unless we're sure it's not,
there's no harm done.

    Brane

-- 
Brane �ibej
    home:   <brane_at_xbc.nu>             http://www.xbc.nu/brane/
    work:   <branko.cibej_at_hermes.si>   http://www.hermes-softlab.com/
     ACM :   <brane_at_acm.org>            http://www.acm.org/
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@subversion.tigris.org
For additional commands, e-mail: dev-help@subversion.tigris.org
Received on Sat Oct 21 14:36:34 2006

This is an archived mail posted to the Subversion Dev mailing list.

This site is subject to the Apache Privacy Policy and the Apache Public Forum Archive Policy.