forked from mia/Aegisub
Open files in binary mode for charset detection
Originally committed to SVN as r6404.
This commit is contained in:
parent
fc96f1bd28
commit
d68a395499
1 changed files with 1 additions and 1 deletions
|
@ -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];
|
||||
|
|
Loading…
Reference in a new issue