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

Re: [TSVN] Reversion of r3391 (patch by Norbert Unterberg)

From: Simon Large <slarge_at_slarge.plus.com>
Date: 2005-05-22 00:55:19 CEST

Norbert Unterberg wrote:
> Simon Large schrieb:
>
>> I am not sure that all of r3391 can be reverted.
>>
> Yes, I was just going to write the same. Stefan reverted a little bit
> too much.
>
> I made infolineA, dateA and authorA a CStringA in
> CBlame::BlameCallback() to convert them to the local code page before
> the infolineA.Format() command. The reason is that otherwise the
> formatting in the blame file will be wrong. The number of bytes of
> the author and date field change in an unpredictable way when you
> write them to m_saveFile as UTF16 strings (the WriteString does the
> conversion to ANSI then, which can even fail for MBCS code pages).
> When converting the strings to the local code page before formatting
> and writing, the blame file has a consistent format. Remember that
> the date string and the author can contain Korean or Japenese
> characters which give more than one byte per UTF16 character ...

I have put back those few lines in BlameCallback() in r3440.

It looks right, but I don't have the tools to build :-(

Simon

-- 
       ___
  oo  // \\      "De Chelonian Mobile"
 (_,\/ \_/ \     TortoiseSVN
   \ \_/_\_/>    The coolest Interface to (Sub)Version Control
   /_/   \_\     http://tortoisesvn.tigris.org
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@tortoisesvn.tigris.org
For additional commands, e-mail: dev-help@tortoisesvn.tigris.org
Received on Sun May 22 00:54:36 2005

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.