From: Scott Wheeler Date: Sat, 28 Jan 2006 13:40:05 +0000 (+0000) Subject: Switch this to "rb" and "rb+" since Windows seems to barf on it without the "b" X-Git-Tag: v1.5~249 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=59b98318687e4d686997e0815cecda27ea57e938;p=taglib Switch this to "rb" and "rb+" since Windows seems to barf on it without the "b" and it doesn't make a difference at all on UNIX. git-svn-id: svn://anonsvn.kde.org/home/kde/trunk/kdesupport/taglib@503213 283d02a7-25f6-0310-bc7c-ecb5cbfe19da --- diff --git a/toolkit/tfile.cpp b/toolkit/tfile.cpp index 464ba28a..7847a71f 100644 --- a/toolkit/tfile.cpp +++ b/toolkit/tfile.cpp @@ -62,7 +62,7 @@ File::File(const char *file) d = new FilePrivate(::strdup(file)); d->readOnly = !isWritable(file); - d->file = fopen(file, d->readOnly ? "r" : "r+"); + d->file = fopen(file, d->readOnly ? "rb" : "rb+"); if(!d->file) debug("Could not open file " + String(file));