[prev in list] [next in list] [prev in thread] [next in thread]
List: kde-commits
Subject: branches/KDE/3.5/kdepim/libkcal
From: Reinhold Kainhofer <reinhold () kainhofer ! com>
Date: 2007-01-26 23:55:12
Message-ID: 1169855712.792994.8855.nullmailer () svn ! kde ! org
[Download RAW message or body]
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);
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic