<table><tr><td style="">dfaure added a comment.
</td><a style="text-decoration: none; padding: 4px 8px; margin: 0 8px 8px; float: right; color: #464C5C; font-weight: bold; border-radius: 3px; background-color: #F7F7F9; background-image: linear-gradient(to bottom,#fff,#f1f0f1); display: inline-block; border: 1px solid rgba(71,87,120,.2);" href="https://phabricator.kde.org/D3203" rel="noreferrer">View Revision</a></tr></table><br /><div><div><p>Well, this time I believe you are right, but it seems like a high price to pay for the 99% cases where everything is fine (a useless roundtrip conversion), just to detect earlier a possible 1% of broken files (which are broken anyway). And actually the error message might be better after this patch than before (where invalid data just gets mangled by the utf8 encoding/decoding)... (depends on what libical does).</p>

<p>I do not believe in making everything slower just to change the error handling for an invalid case (and not necessarily for the better).</p>

<p>I can accept the argument that a unittest for what happens to invalid non-utf8 data should be added. This runs the risk that I lose motivation for this patch though ;-)</p></div></div><br /><div><strong>REPOSITORY</strong><div><div>rKCALENDARCORE KCalendar Core</div></div></div><br /><div><strong>REVISION DETAIL</strong><div><a href="https://phabricator.kde.org/D3203" rel="noreferrer">https://phabricator.kde.org/D3203</a></div></div><br /><div><strong>EMAIL PREFERENCES</strong><div><a href="https://phabricator.kde.org/settings/panel/emailpreferences/" rel="noreferrer">https://phabricator.kde.org/settings/panel/emailpreferences/</a></div></div><br /><div><strong>To: </strong>dfaure, djarvie, smartins<br /><strong>Cc: </strong>knauss, kde-pim, KDE PIM, spencerb, dvasin, winterz, vkrause, mlaurent, dvratil<br /></div>