Skip to content

Commit

Permalink
refurbish
Browse files Browse the repository at this point in the history
  • Loading branch information
edocevoli committed Mar 17, 2024
1 parent a0a66a1 commit ccb8ac9
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions Libraries/MiKTeX/TeXAndFriends/inputline.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -87,20 +87,20 @@ int CheckBom(FILE* file)
int bom = val & Bom::UTF8_mask;
if (bom == Bom::UTF8)
{
return bom;
return bom;
}
else
{
maybeUtf16bom = true;
maybeUtf16bom = true;
}
}
if (n == Bom::UTF16_length || maybeUtf16bom)
{
int bom = val & Bom::UTF16_mask;
if (bom == Bom::UTF16be || bom == Bom::UTF16le)
{
Seek(file, Bom::UTF16_length);
return bom;
Seek(file, Bom::UTF16_length);
return bom;
}
}
Seek(file, 0);
Expand Down

0 comments on commit ccb8ac9

Please sign in to comment.