Sisyphus repository
Last update: 1 october 2023 | SRPMs: 18631 | Visits: 37725640
en ru br
ALT Linux repos
S:4.8.7-alt25
5.0: 4.5.2-alt1.M50.1
4.1: 4.4.3-alt1.M41.1
4.0: 4.3.4-alt5.M40.1
3.0: 4.0.1-alt1
+updates:4.0.1-alt2
+backports:4.2.3-alt7.1.M30

Group :: System/Libraries
RPM: qt4

 Main   Changelog   Spec   Patches   Sources   Download   Gear   Bugs and FR  Repocop 

Patch: 9100-qt-core-fix-iconvcodec.patch
Download


diff -Naur qt-x11-opensource-src-4.5.0-orig/src/corelib/codecs/qiconvcodec.cpp qt-x11-opensource-src-4.5.0/src/corelib/codecs/qiconvcodec.cpp
--- qt-x11-opensource-src-4.5.0-orig/src/corelib/codecs/qiconvcodec.cpp	2009-02-26 00:09:21.000000000 +0300
+++ qt-x11-opensource-src-4.5.0/src/corelib/codecs/qiconvcodec.cpp	2009-03-07 23:02:26.000000000 +0300
@@ -101,6 +101,12 @@
         fprintf(stderr, "QIconvCodec::convertToUnicode: internal error, UTF-16 codec not found\n");
         utf16Codec = reinterpret_cast<QTextCodec *>(~0);
     }
+#ifdef Q_OS_UNIX
+    if (!qt_locale_initialized) {
+        setlocale(LC_ALL, "");                // use correct char set mapping
+        qt_locale_initialized = true;
+    }
+#endif
 #if defined(Q_OS_MAC)
     if (ptr_iconv_open == 0) {
         QLibrary libiconv(QLatin1String("/usr/lib/libiconv"));
 
design & coding: Vladimir Lettiev aka crux © 2004-2005, Andrew Avramenko aka liks © 2007-2008
current maintainer: Michael Shigorin