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

List:       kde-commits
Subject:    KDE/kdelibs/kio/kio
From:       Richard Lärkäng <richard () goteborg ! utfors ! se>
Date:       2006-08-29 22:30:43
Message-ID: 1156890643.464909.6016.nullmailer () svn ! kde ! org
[Download RAW message or body]

SVN commit 578681 by larkang:

Don't crash when no encoding is specified,
default codec should be Latin-1 according to Thiago


 M  +3 -1      kremoteencoding.cpp  


--- trunk/KDE/kdelibs/kio/kio/kremoteencoding.cpp #578680:578681
@@ -82,8 +82,10 @@
     codec = QTextCodec::codecForName(name);
 
   if (codec == 0)
-    codec = QTextCodec::codecForMib(1);
+    codec = QTextCodec::codecForMib(4 /* latin-1 */);
 
+  Q_ASSERT(codec);
+
   kDebug() << k_funcinfo << "setting encoding " << codec->name()
 	    << " for name=" << name << endl;
 }
[prev in list] [next in list] [prev in thread] [next in thread] 

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