mirror of https://github.com/odrling/Aegisub
Open files in binary mode for charset detection
Originally committed to SVN as r6404.
This commit is contained in:
parent
fc96f1bd28
commit
d68a395499
|
@ -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 New Issue