1
0
mirror of https://github.com/odrling/Aegisub synced 2025-04-11 22:56:02 +02:00

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

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];