[prev in list] [next in list] [prev in thread] [next in thread] 

List:       kmail-devel
Subject:    Re: Bug#17294: reproducible crash with charset codec
From:       Sven Carstens <s.carstens () gmx ! de>
Date:       2000-12-18 10:59:59
[Download RAW message or body]

> the source:
>     // Workaround for bug in QT-2.2.2
> if (mCharset == "utf-8") mEditor->setText(QString::fromUtf8(bodyDecoded));
> else
> {
>     QTextCodec *codec = KMMsgBase::codecForName(mCharset);

	if(codec) {

>     mEditor->setText(codec->toUnicode(bodyDecoded));
>     mEditor->insertLine("\n", -1);

	} // got no codec
> }

We shouldn't rely on the return values of codecForName.

CU Sven

_______________________________________________
Kmail Developers mailing list
Kmail@master.kde.org
http://master.kde.org/mailman/listinfo/kmail

[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic