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

Unable to apply patch that contains Japanese text

From: Kazutoshi Satoda <k_satoda_at_f2.dion.ne.jp>
Date: 2006-01-16 15:01:02 CET

Today, I have upgraded TortoiseSVN to the 1.3.0 release.
Then I found that TortoiseMerge rejects any patch that contains
Japanese text(cp932). The error message shows a pair of unmatching
text and the former of them seems to be badly decoded.

I looked into source, and found a questionable change in
TortoiseSVN/src/TortoiseMerge/Patch.cpp at r5349.

> - if (m_UnicodeType != CFileTextLines::UTF8)
> + if ((m_UnicodeType != CFileTextLines::UTF8)&&(m_UnicodeType != CFileTextLines::UTF8BOM))
> {
> - if (PatchLines.GetUnicodeType()==CFileTextLines::UTF8)
> + if ((PatchLines.GetUnicodeType()==CFileTextLines::UTF8)||(m_UnicodeType != CFileTextLines::UTF8BOM))

I think that the second part was intended to be like
    if((PatchLines.GetUnicodeType()==CFileTextLines::UTF8)||(PatchLines.GetUnicodeType()==CFileTextLines::UTF8BOM))
isn't it?
Otherwise sPatchLine is converted as UTF8 text though actually it is not.

I examined that RC1(r5301, before above revision) can apply a patch
that contains Japanese text.

Best regards.

--
k_satoda
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@tortoisesvn.tigris.org
For additional commands, e-mail: dev-help@tortoisesvn.tigris.org
Received on Mon Jan 16 15:49:27 2006

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.