ALT Linux repos
S: | 3.3.8d-alt16.1 |
5.0: | 3.3.8b-alt3 |
4.1: | 3.3.8b-alt2.qa1 |
4.0: | 3.3.8b-alt0.M40.1 |
3.0: | 3.3.4-alt6 |
+updates: | 3.3.4-alt6.3.M30 |
Group :: System/Libraries
RPM: qt3
Main Changelog Spec Patches Sources Download Gear Bugs and FR Repocop
Patch: 9006-qt-x11-free-3.3.3-codecs-utf8.patch
Download
Download
diff -Naur qt-x11-free-3.3.3.orig/src/tools/qstring.cpp qt-x11-free-3.3.3/src/tools/qstring.cpp
--- qt-x11-free-3.3.3.orig/src/tools/qstring.cpp 2004-08-05 18:41:58 +0400
+++ qt-x11-free-3.3.3/src/tools/qstring.cpp 2004-12-30 12:34:17 +0300
@@ -5706,6 +5706,8 @@
slen = int(strlen(utf8));
}
len = len < 0 ? slen : QMIN(slen, len);
+ if ( len == 0 || *utf8 == '\0' )
+ return QString::fromLatin1( "" );
QString result;
result.setLength( len*2 ); // worst case
QChar *qch = (QChar *)result.unicode();