Remove sintance.h/sintance.cpp as not compatible with GPL (#1886580)
BugFix: Ignore codepage specified on File Encoding dialog if file was
detected as UTF-8 (#1900728)
+ BugFix: Recognize invalid UTF-8 sequence as UTF-8 (#1900733)
WinMerge 2.7.7.5 - 2008-02-22 (r5069)
Cleaning up Help-menu (#1875111)
bool bUTF8 = false;
for (int i = 0; i < (size - 3); ++i)
{
- if ((*pVal2 & 0xE0) == 0xC0)
+ if ((*pVal2 & 0x80) == 0x00)
+ ;
+ else if ((*pVal2 & 0xE0) == 0xC0)
{
pVal2++;
i++;
return true;
bUTF8 = true;
}
- if ((*pVal2 & 0xF0) == 0xE0)
+ else if ((*pVal2 & 0xF0) == 0xE0)
{
pVal2++;
i++;
return true;
bUTF8 = true;
}
- if ((*pVal2 & 0xF8) == 0xF0)
+ else if ((*pVal2 & 0xF8) == 0xF0)
{
pVal2++;
i++;
return true;
bUTF8 = true;
}
+ else
+ return true;
pVal2++;
}
if (bUTF8)