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

unicode bug in TortoiseMerge

From: Першин Юрий <pershin_at_prosoftsystems.ru>
Date: 2007-06-04 16:32:49 CEST

Index: FileTextLines.cpp
===================================================================
--- FileTextLines.cpp (revision 9622)
+++ FileTextLines.cpp (working copy)
@@ -272,6 +272,7 @@
  // fill in the lines into the array
  wchar_t * pTextBuf = (wchar_t *)pFileBuf;
  wchar_t * pLineStart = (wchar_t *)pFileBuf;
+ if(m_UnicodeType == UNICODE_LE) { ++pTextBuf; ++pLineStart;
dwReadBytes/=2; --dwReadBytes; }
  for (DWORD i = 0; i<dwReadBytes; ++i)
  {
   if (*pTextBuf == '\r')

---
С уважением, Юрий Першин
Вед. инженер по технологиям обеспечения качества ПО
Прософт-Системы, Екатеринбург (тел. +7(343)-376-28-20, доб. 333)
BR, Y. Pershin
QA / AD lead engineer, ProSoft Systems,
YEKT - Russia
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@tortoisesvn.tigris.org
For additional commands, e-mail: dev-help@tortoisesvn.tigris.org
Received on Mon Jun 4 16:34:35 2007

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.