[prev in list] [next in list] [prev in thread] [next in thread]
List: koffice
Subject: Re: kword
From: David Faure <david () mandrakesoft ! com>
Date: 2001-05-27 9:09:18
[Download RAW message or body]
On Sunday 27 May 2001 06:12, sol&diederic wrote:
> Hi David,
>
> started Kword from command line: Kword (enter)
> 1267 Kword. WARNING: KFilterbase:: find FilterBy Extension: not filter found
> for application/x-kword
Hmm, did you update to kdelibs-2.2-alpha without recompiling koffice ?
I didn'y think of it, but the new KTar stuff in kdelibs _needs_ that koffice
sends it the mimetype to use when opening the file..... whoops, not good
for compatibility.....
Hmm, I don't see how to solve this problem, so that kdelibs-2.2-* knows
that it needs a gzip filter for koffice file, without koffice telling it :(
(The old KTar only supported gzipped files, so it didn't need to be told what to use....)
Maybe I could make KTar default to gzip-or-uncompressed when it can't
find the mimetype, for compat reasons....
Index: kfilterbase.cpp
===================================================================
RCS file: /home/kde/kdelibs/kio/kfilterbase.cpp,v
retrieving revision 1.4
diff -u -p -r1.4 kfilterbase.cpp
--- kfilterbase.cpp 2001/05/09 16:33:50 1.4
+++ kfilterbase.cpp 2001/05/27 10:05:02
@@ -66,7 +66,11 @@ KFilterBase * KFilterBase::findFilterByM
if ( filter )
return filter;
}
- kdWarning() << "KFilterBase::findFilterByExtension : not filter found for " << mimeType << endl;
+ kdWarning() << "KFilterBase::findFilterByExtension : no filter found for " << mimeType << endl;
+
+ // For compat reasons: default to gzip-or-uncompressed
+ if ( mimeType != "application/x-gzip" )
+ return findFilterByMimeType( "application/x-gzip" );
return 0L;
}
Can you apply this to kdelibs/kio/, recompile kio, make install, and try again ?
Do NOT recompile koffice yet - it will surely fix it, but it shouldn't be necessary
to do so when updating kdelibs-2.1.x to kdelibs-2.2 ! This would break it for
all binary-packages users.
> file KW-gen.kwd attached (one of the files that won't open; I did create a
> new file (also attached) TRIAL.kwd which does open in Kword. KMail crashed,
> so no attchements.
No, no attachments indeed :)
--
David FAURE, david@mandrakesoft.com, faure@kde.org
http://perso.mandrakesoft.com/~david/, http://www.konqueror.org/
KDE, Making The Future of Computing Available Today
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic