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

Re: "compare with working copy" shows error "... Unknown Line Type ..." on unicode file

From: Stefan Küng <tortoisesvn_at_gmail.com>
Date: Thu, 12 Jun 2008 17:45:02 +0200

Roee oz wrote:
> Hello Subversion Users.
>
>
>
> I’m having a problem trying to use "compare with working copy" from the
> log view.
>
> The problem occurs when there is a diff in a Unicode file (namely a .cs
> class which has Hebrew strings and so is saved as Unicode by visual studio).
>
> If the diff doesn’t include this file, it shows OK.

That's because the "compare with working copy" feature first creates a
unified diff with the svn diff library. But that library only knows UTF8
and ASCII texts, not UTF-16 texts. Text which are in UTF-16 are treated
as binary and they don't produce a unified diff at all.
That's why such files don't show up.

Stefan

-- 
        ___
   oo  // \\      "De Chelonian Mobile"
  (_,\/ \_/ \     TortoiseSVN
    \ \_/_\_/>    The coolest Interface to (Sub)Version Control
    /_/   \_\     http://tortoisesvn.net

Received on 2008-06-12 17:45:19 CEST

This is an archived mail posted to the TortoiseSVN Users mailing list.