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

unicode bug about using tortoisemerge to patch

From: George Panda <vzerda_at_gmail.com>
Date: Fri, 30 Sep 2011 00:36:52 +0800

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.

Sorry for my poor english, best regards.

George.P

------------------------------------------------------
http://tortoisesvn.tigris.org/ds/viewMessage.do?dsForumId=757&dsMessageId=2847910

To unsubscribe from this discussion, e-mail: [dev-unsubscribe_at_tortoisesvn.tigris.org].

Received on 2011-09-29 18:39: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.