]> granicus.if.org Git - taglib/commitdiff
Switch this to "rb" and "rb+" since Windows seems to barf on it without the "b"
authorScott Wheeler <wheeler@kde.org>
Sat, 28 Jan 2006 13:40:05 +0000 (13:40 +0000)
committerScott Wheeler <wheeler@kde.org>
Sat, 28 Jan 2006 13:40:05 +0000 (13:40 +0000)
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

toolkit/tfile.cpp

index 464ba28a4ea5a47b5dd4980ffc276f04fa144e7b..7847a71fe75bf1f1c3732e8185343e037681d123 100644 (file)
@@ -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));