author | zautrix <zautrix> | 2004-10-16 10:18:46 (UTC) |
---|---|---|
committer | zautrix <zautrix> | 2004-10-16 10:18:46 (UTC) |
commit | 023b3c542a6dd4d1c4b53dba6bb2c68f605a7917 (patch) (side-by-side diff) | |
tree | 96929f98d9de314dc48f0a89efa5d93a78644a3d /kmicromail/libmailwrapper/abstractmail.cpp | |
parent | 2897677d61fd8d33355611b5b951e2bee1136b9c (diff) | |
download | kdepimpi-023b3c542a6dd4d1c4b53dba6bb2c68f605a7917.zip kdepimpi-023b3c542a6dd4d1c4b53dba6bb2c68f605a7917.tar.gz kdepimpi-023b3c542a6dd4d1c4b53dba6bb2c68f605a7917.tar.bz2 |
umlaut fix for ompi
Diffstat (limited to 'kmicromail/libmailwrapper/abstractmail.cpp') (more/less context) (ignore whitespace changes)
-rw-r--r-- | kmicromail/libmailwrapper/abstractmail.cpp | 12 |
1 files changed, 5 insertions, 7 deletions
diff --git a/kmicromail/libmailwrapper/abstractmail.cpp b/kmicromail/libmailwrapper/abstractmail.cpp index 673f288..2d7533c 100644 --- a/kmicromail/libmailwrapper/abstractmail.cpp +++ b/kmicromail/libmailwrapper/abstractmail.cpp @@ -90,20 +90,18 @@ encodedString* AbstractMail::decode_String(const encodedString*text,const QStrin QString AbstractMail::convert_String(const char*text) { - //size_t index = 0; + size_t index = 0; char*res = 0; int err = MAILIMF_NO_ERROR; QString result(text); - /* due a bug in libetpan it isn't usable this moment */ -/* int err = mailmime_encoded_phrase_parse("iso-8859-1", - text, strlen(text),&index, "iso-8859-1",&res);*/ - //odebug << "Input: " << text << "" << oendl; + err = mailmime_encoded_phrase_parse("iso-8859-1", + text, strlen(text),&index, "iso-8859-1",&res); if (err == MAILIMF_NO_ERROR && res && strlen(res)) { -// result = QString(res); -// odebug << "Res: " << res << ", length: " << strlen(res) << "" << oendl; + result = QString(res); } + //qDebug("convert_String:%s ",result.latin1() ); if (res) free(res); return result; } |