subversion-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Ben Reser <...@reser.org>
Subject Re: SVN Blame Returns Corrupt Data
Date Fri, 11 Oct 2013 16:52:31 GMT
On 10/11/13 9:22 AM, Branko ─îibej wrote:
> You'd have to extend Subversion's file type detection to detect UTF-16.
> See svn_io_detect_mimetype2 in line 3333 in this file:
> 
> http://svn.apache.org/viewvc/subversion/trunk/subversion/libsvn_subr/io.c?view=markup
> Subversion currently only looks at the first 1k Bytes of a file. It may
> be enough to check that this initial part of the file contains only
> valid UTF-16 (BE or LE) codes.

Even if all we looked for is the BOM it might be helpful enough.  I suspect the
development tools producing UTF-16 are including BOMs.  Windows seems to be
fond of including them, Notepad puts one even on UTF-8.

Mime
View raw message