(detect_coding_utf_8): Set detect_info->found only when
non-ASCII char is found.
This commit is contained in:
parent
41fa3e2c20
commit
0e17387a9e
2 changed files with 5 additions and 1 deletions
|
@ -1310,7 +1310,8 @@ detect_coding_utf_8 (coding, detect_info)
|
|||
else
|
||||
{
|
||||
detect_info->rejected |= CATEGORY_MASK_UTF_8_SIG;
|
||||
detect_info->found |= CATEGORY_MASK_UTF_8_NOSIG;
|
||||
if (found)
|
||||
detect_info->found |= CATEGORY_MASK_UTF_8_NOSIG;
|
||||
}
|
||||
return 1;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue