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

Re: Has anyone seen NUL characters in their unified diffs?

From: Stefan Küng <tortoisesvn_at_gmail.com>
Date: Thu, 10 Dec 2009 20:48:02 +0100

On 10.12.2009 06:22, Nathan Tuggy wrote:
> It looks like Unicode to me: every other character is a NUL, which is
> typical of UTF-16 files that contain only ASCII characters. Check your
> source files to see.
>
> As for why this shows up, I'm not sure; I would expect that TSVN would
> handle Unicode, and I've certainly never had trouble on the few
> occasions I've tried dealing with Unicode files. Perhaps the files don't
> have the Byte Order Marker at the beginning as they ought to?

TSVN can handle utf-16 files very well. And so can TMerge.
But the unified diffs are plain ascii or utf8 because their headers are
written in utf8 encoding.
That's not going to change since unified diff format can't handle utf-16.

Stefan

-- 
        ___
   oo  // \\      "De Chelonian Mobile"
  (_,\/ \_/ \     TortoiseSVN
    \ \_/_\_/>    The coolest Interface to (Sub)Version Control
    /_/   \_\     http://tortoisesvn.net
------------------------------------------------------
http://tortoisesvn.tigris.org/ds/viewMessage.do?dsForumId=4061&dsMessageId=2429565
To unsubscribe from this discussion, e-mail: [users-unsubscribe_at_tortoisesvn.tigris.org].
Received on 2009-12-10 20:48:17 CET

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

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