[prev in list] [next in list] [prev in thread] [next in thread]
List: kwrite-devel
Subject: Re: Saving through KCompressionDevice
From: David Faure <faure () kde ! org>
Date: 2013-12-28 16:08:00
Message-ID: 1399705.3gxztRx2Ga () asterix
[Download RAW message or body]
On Friday 27 December 2013 22:44:19 Dominik Haumann wrote:
> Hi,
>
> saving a file with Kate compiled from kate.git/frameworks branch still leads
> to data loss: The file is messed up a bit, as if syncing into the text
> stream does not always work correctly.
>
> The attached diff shows such an example: Expected are not changes at all.
> But git diff shows that the file is messed up.
>
> Checking what we write to the QTextStream, it seems that Kate Part writes
> the data correctly in katetextbuffer.cpp function ::save().
>
> @David: When we switch to simple QFile, this seems to work as expected.
> We don't have a unit test right now. Still: any ideas?
>
> File:
> https://projects.kde.org/projects/kde/applications/kate/repository/revision
> s/frameworks/entry/part/buffer/katetextbuffer.cpp#L732
OK, I was able to write a failing unittest using QTextStream, I'll debug it
now.
--
David Faure, faure@kde.org, http://www.davidfaure.fr
Working on KDE, in particular KDE Frameworks 5
_______________________________________________
KWrite-Devel mailing list
KWrite-Devel@kde.org
https://mail.kde.org/mailman/listinfo/kwrite-devel
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic