From 59b98318687e4d686997e0815cecda27ea57e938 Mon Sep 17 00:00:00 2001 From: Scott Wheeler <wheeler@kde.org> Date: Sat, 28 Jan 2006 13:40:05 +0000 Subject: [PATCH] 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 --- toolkit/tfile.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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)); -- 2.40.0