Strange warning when using KTar
David Faure
dfaure at klaralvdalens-datakonsult.se
Mon Mar 17 22:12:25 GMT 2003
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
On Monday 17 March 2003 18:59, Andras Mantia wrote:
> Hi,
>
> I use KTar to create gzipped tar archives, and I see the following output:
>
> ASSERT: "filter->mode() == IO_ReadOnly" in
> /home/andris/cvs-developement/head/kde-cvs/kdelibs/kio/kio/kfilterdev.cpp
> (186)
> ASSERT: "filter->mode() == IO_ReadOnly" in
> /home/andris/cvs-developement/head/kde-cvs/kdelibs/kio/kio/kfilterdev.cpp
> (186)
>
> Now, I don't understand why it says anything about being opened in
> IO_ReadOnly, as I have in the code:
>
> KTar tar(tarFile.path(), "application/x-gzip");
> tar.open(IO_WriteOnly);
> tar.writeFile(QFileInfo(tarFile.path()).baseName()+".toolbar", "user",
> "group", buffer.buffer().size(), buffer.buffer().data());
> tar.writeFile(QFileInfo(tarFile.path()).baseName()+".actions", "user",
> "group", buffer2.buffer().size(), buffer2.buffer().data());
> tar.close();
>
> As you see the tar file is opened in IO_WriteOnly mode. The asserts occur when
> calling tar.writeFile().
> Is this a bug in KTar/KFilterDev?
Sounds like. Can you send me a bt of the ASSERT?
(simply replace Q_ASSERT with assert ;)
- --
David Faure -- faure at kde.org, dfaure at klaralvdalens-datakonsult.se
Qt/KDE/KOffice developer
Klarälvdalens Datakonsult AB, Platform-independent software solutions
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.0.7 (GNU/Linux)
iD8DBQE+dkhJ72KcVAmwbhARAhwwAKCm40CryR180von8+IIoglc4IcPvwCfQtRi
fnaXr2uMXAnJaz7/qVD28KQ=
=iMPY
-----END PGP SIGNATURE-----
More information about the kde-core-devel
mailing list