don't use feof
on certain systems, if a user accidentally passes a directory to uchardet, it will hang indefinitely. this fixes it. see the c faq
on certain systems, if a user accidentally passes a directory to uchardet, it will hang indefinitely. this fixes it. see the c faq