(detect_coding_utf_8): Set detect_info->found only when

non-ASCII char is found.
This commit is contained in:
Kenichi Handa 2008-07-09 13:06:14 +00:00
parent 41fa3e2c20
commit 0e17387a9e
2 changed files with 5 additions and 1 deletions

View file

@ -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;
}