🐛 Lille bugfix 2.0
This commit is contained in:
@ -24,9 +24,6 @@ bool is_utf8(FILE* f) {
|
|||||||
}
|
}
|
||||||
byte = byte << 1;
|
byte = byte << 1;
|
||||||
}
|
}
|
||||||
if (char_length == -1) {
|
|
||||||
return false;
|
|
||||||
}
|
|
||||||
for (int i = 1 ; i < char_length ; i++) {
|
for (int i = 1 ; i < char_length ; i++) {
|
||||||
if (fread(&byte, 1, 1, f) == 0 || byte >> 6 != 2) {
|
if (fread(&byte, 1, 1, f) == 0 || byte >> 6 != 2) {
|
||||||
return false;
|
return false;
|
||||||
|
Reference in New Issue
Block a user