Open files in binary mode for charset detection

Originally committed to SVN as r6404.
This commit is contained in:
Thomas Goyne 2012-01-31 04:03:50 +00:00
parent fc96f1bd28
commit d68a395499
1 changed files with 1 additions and 1 deletions

View File

@ -34,7 +34,7 @@ namespace agi {
UCDetect::UCDetect(const std::string &file): nsUniversalDetector(NS_FILTER_ALL) {
{
std::auto_ptr<std::ifstream> fp(io::Open(file));
std::auto_ptr<std::ifstream> fp(io::Open(file, true));
while (!mDone && !fp->eof()) {
char buf[512];