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

Re: unicode bug about using tortoisemerge to patch

From: Stefan Küng <tortoisesvn_at_gmail.com>
Date: Thu, 29 Sep 2011 21:44:20 +0200

On 29.09.2011 18:36, George Panda wrote:
> Hi, there
>
> I have the nightly build version of TortoiseSVN (r21969), while using
> TortoiseMerge to patch file, I found a bug.
>
> If the source file contains a line starting with ASCII text and
> following are chinese text, after applying the patch, chinese text are
> replaced with NUL characters in that line.
>
> I debug it a little, in file *src/Utils/UnicodeUtils.cpp*, at L33,
> function*char * CUnicodeUtils:: UTF16ToUTF8 (const wchar_t * source,
> size_t size, char * target)* does not properly handle this situation.
> I'm sorry I cannot provide a fix as I am not good at c++.
>
> The attachments are source and patch file used in the debug.

Thanks for the detailed report and the test files!

Fixed in r22041.

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=2847946
To unsubscribe from this discussion, e-mail: [dev-unsubscribe_at_tortoisesvn.tigris.org].
Received on 2011-09-29 21:44:38 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.