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

Re: [T-Mege bug] Comparing UTF8 and ASCII files shows changes on lines with non ASCII chars

From: Stefan Küng <tortoisesvn_at_gmail.com>
Date: Wed, 22 Aug 2012 21:49:28 +0200

On 21.08.2012 21:52, Oto BREZINA wrote:
> On 2012-08-21 21:07, Stefan Küng wrote:
>> On 21.08.2012 15:32, Oto BREZINA wrote:
>>> I added mergediff/Schiller'sGlocke_baseU8.txt.
>>>
>>> If you diff it with previous version or
>>> mergediff/Schiller'sGlocke_baseU.txt (source of U8 vesrion) you can see
>>> changed lines where sharp s is used.
>>> This seems be problem that diff is run on ASCII vs. UTF8 file instead if
>>> UTF8 - UTF8.
>> Actually, it's when comparing Schiller'sGlocke_base.txt with
>> Schiller'sGlocke_baseU8.txt.
>>
>> Comparing Schiller'sGlocke_baseU.txt with Schiller'sGlocke_baseU8.txt
>> seems to be fine.
>>
>>> I can fix this, but maybe you want to add it to issue tracker and merge
>>> to 1.7 as this bug is there too.
>> I don't think that's a bug: the lines *are* different, they are only
>> *shown* the same way due to the different encoding. But the lines are
>> different.
> Ok, I see Logic here.
> However when you compare UTF16 to UTF8 then you don't see this encoding
> change as line difference ...
> With CRLF handling this become even more visible ... Let say one is CRLF
> Ascii and other UTF8. I guess no difference will be shown.
> Bit uncosistence. Isn't it?

So should we convert all ANSI files as well?
Or maybe just convert it if the other file has been converted or is in a
different encoding?

Stefan

-- 
        ___
   oo  // \\      "De Chelonian Mobile"
  (_,\/ \_/ \     TortoiseSVN
    \ \_/_\_/>    The coolest Interface to (Sub)Version Control
    /_/   \_\     http://tortoisesvn.net
------------------------------------------------------
http://tortoisesvn.tigris.org/ds/viewMessage.do?dsForumId=757&dsMessageId=3000248
To unsubscribe from this discussion, e-mail: [dev-unsubscribe_at_tortoisesvn.tigris.org].
Received on 2012-08-22 21:49:42 CEST

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

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