Summary: | calendar file grows by 20 megabytes causes korganizer to crash (all system memory exhausted) when any operation on it is performed | ||
---|---|---|---|
Product: | [Applications] korganizer | Reporter: | Michał Kosmulski <michal> |
Component: | general | Assignee: | kdepim bugs <kdepim-bugs> |
Status: | RESOLVED FIXED | ||
Severity: | crash | ||
Priority: | NOR | ||
Version: | unspecified | ||
Target Milestone: | --- | ||
Platform: | Slackware | ||
OS: | Linux | ||
Latest Commit: | Version Fixed In: |
Description
Michał Kosmulski
2007-01-26 23:16:33 UTC
I can confirm this problem. All non-ascii characters in all URLs (attachments, audio alarm file, procedure alarm application) are loaded wrongly (utf8 data is loaded as latin1, but then written back as utf8). Reinhold SVN commit 627541 by kainhofe: When loading any url/uri (attachments, audio alarm files, procedure alarm application), make sure we load it as utf8 and not latin1. By default, QString(const char*) treats the string as latin1, so we need to use QString::fromUtf8 instead. BUG: 140688 M +2 -2 icalformatimpl.cpp --- branches/KDE/3.5/kdepim/libkcal/icalformatimpl.cpp #627540:627541 @@ -1204,11 +1204,11 @@ if (isurl == 0) attachment = new Attachment((const char*)icalattach_get_data(a)); else { - attachment = new Attachment(QString(icalattach_get_url(a))); + attachment = new Attachment(QString::fromUtf8(icalattach_get_url(a))); } } else if ( value_kind == ICAL_URI_VALUE ) { - attachment = new Attachment(QString(icalvalue_get_uri(icalproperty_get_value(attach)))); + attachment = new Attachment(QString::fromUtf8(icalvalue_get_uri(icalproperty_get_value(attach)))); } icalparameter *p = icalproperty_get_first_parameter(attach, ICAL_FMTTYPE_PARAMETER); Wow! That sure was a quick fix. Thank you. |