Changed char[] to unsigned char[] in cIniFile::RemoveBom
This commit is contained in:
parent
8c34b2d974
commit
d4f2788008
@ -834,7 +834,7 @@ AString cIniFile::CheckCase(const AString & s) const
|
||||
void cIniFile::RemoveBom(AString & a_line) const
|
||||
{
|
||||
// The BOM sequence for UTF-8 is 0xEF,0xBB,0xBF ( In Unicode Latin I: )
|
||||
static char BOM[] = { 0xEF, 0xBB, 0xBF };
|
||||
static unsigned char BOM[] = { 0xEF, 0xBB, 0xBF };
|
||||
|
||||
// The BOM sequence, if present, is always the first three characters of the input.
|
||||
if (a_line.compare(0, 3, BOM) == 0)
|
||||
|
Loading…
Reference in New Issue
Block a user