diff options
author | Qt Continuous Integration System <qt-info@nokia.com> | 2010-05-01 21:27:37 (GMT) |
---|---|---|
committer | Qt Continuous Integration System <qt-info@nokia.com> | 2010-05-01 21:27:37 (GMT) |
commit | 7274f7f9cc21beeddb01adadc7eb79ed61459802 (patch) | |
tree | 7679d9f01baa33de695f421916fd9bd6d7af8a49 /src/corelib/codecs/qiconvcodec.cpp | |
parent | 3e6a12e90d05d24bca68128d60215c207a416ef6 (diff) | |
parent | 36a5ecba6ca65e8445fa9b391e239f62c2002159 (diff) | |
download | Qt-7274f7f9cc21beeddb01adadc7eb79ed61459802.zip Qt-7274f7f9cc21beeddb01adadc7eb79ed61459802.tar.gz Qt-7274f7f9cc21beeddb01adadc7eb79ed61459802.tar.bz2 |
Merge branch 'qt-4.7-from-4.6' of scm.dev.nokia.troll.no:qt/qt-integration into 4.7-integration
* 'qt-4.7-from-4.6' of scm.dev.nokia.troll.no:qt/qt-integration: (106 commits)
Fix the include header <qstring.h> -> <QtCore/qstring.h>
Testlib XML flush: use benchmarkMetricName (identifier) overall instead of benchmarkMetricUnit (human text)
Update the testlib XML baselines with the unit names from QTestLib
Renaming a few unexported, private symbols
tst_selftest: parse benchlib results in XML format too
tst_selftests: replace a line number with __LINE__ in XML too
Removed fullscreen responsiveness of softkeys
tst_selftest: use @INSERT_QT_VERSION_HERE@ to indicate the Qt version.
fix crash in QXmlStreamReader
Fixed a QFontEngine leak for QFont objects used in threads.
The cmd line arguments have not been delegated properly.
Apply Rhys's fix to qpaintengine_vg.cpp to make it compile
Fixed QGLWidget::grabFrameBuffer() to honor the 'withAlpha' value.
Adjusted layout of audiodevice example to use scrollbar.
win32 backend for low-level audio fixes
QXmlSchema internals: fix crash with anonymous types
QNAM HTTP: Fix invoking a method when being destructed right now (2)
QNAM: Use a reference in appendDownstreamData
QNAM HTTP: Divide QNetworkReplyImplPrivate::appendDownstreamData
QNAM HTTP: Avoid one copy
...
Diffstat (limited to 'src/corelib/codecs/qiconvcodec.cpp')
-rw-r--r-- | src/corelib/codecs/qiconvcodec.cpp | 22 |
1 files changed, 11 insertions, 11 deletions
diff --git a/src/corelib/codecs/qiconvcodec.cpp b/src/corelib/codecs/qiconvcodec.cpp index 0fcdf96..44a0a01 100644 --- a/src/corelib/codecs/qiconvcodec.cpp +++ b/src/corelib/codecs/qiconvcodec.cpp @@ -168,7 +168,7 @@ Q_GLOBAL_STATIC(QThreadStorage<QIconvCodec::IconvState *>, toUnicodeState) QString QIconvCodec::convertToUnicode(const char* chars, int len, ConverterState *convState) const { if (utf16Codec == reinterpret_cast<QTextCodec *>(~0)) - return QString::fromAscii(chars, len); + return QString::fromLatin1(chars, len); int invalidCount = 0; int remainingCount = 0; @@ -207,9 +207,9 @@ QString QIconvCodec::convertToUnicode(const char* chars, int len, ConverterState static int reported = 0; if (!reported++) { fprintf(stderr, - "QIconvCodec::convertToUnicode: using ASCII for conversion, iconv_open failed\n"); + "QIconvCodec::convertToUnicode: using Latin-1 for conversion, iconv_open failed\n"); } - return QString::fromAscii(chars, len); + return QString::fromLatin1(chars, len); } *pstate = new IconvState(cd); @@ -273,14 +273,14 @@ QString QIconvCodec::convertToUnicode(const char* chars, int len, ConverterState // some other error // note, cannot use qWarning() since we are implementing the codecForLocale :) - perror("QIconvCodec::convertToUnicode: using ASCII for conversion, iconv failed"); + perror("QIconvCodec::convertToUnicode: using Latin-1 for conversion, iconv failed"); if (!convState) { // reset state iconv(state->cd, 0, &inBytesLeft, 0, &outBytesLeft); } - return QString::fromAscii(chars, len); + return QString::fromLatin1(chars, len); } } while (inBytesLeft != 0); @@ -353,12 +353,12 @@ QByteArray QIconvCodec::convertFromUnicode(const QChar *uc, int len, ConverterSt state = new IconvState(QIconvCodec::createIconv_t(0, UTF16)); if (state->cd == reinterpret_cast<iconv_t>(-1)) { if (!setByteOrder(state->cd)) { - perror("QIconvCodec::convertFromUnicode: using ASCII for conversion, iconv failed for BOM"); + perror("QIconvCodec::convertFromUnicode: using Latin-1 for conversion, iconv failed for BOM"); iconv_close(state->cd); state->cd = reinterpret_cast<iconv_t>(-1); - return QString(uc, len).toAscii(); + return QString(uc, len).toLatin1(); } } } @@ -366,9 +366,9 @@ QByteArray QIconvCodec::convertFromUnicode(const QChar *uc, int len, ConverterSt static int reported = 0; if (!reported++) { fprintf(stderr, - "QIconvCodec::convertFromUnicode: using ASCII for conversion, iconv_open failed\n"); + "QIconvCodec::convertFromUnicode: using Latin-1 for conversion, iconv_open failed\n"); } - return QString(uc, len).toAscii(); + return QString(uc, len).toLatin1(); } size_t outBytesLeft = len; @@ -425,12 +425,12 @@ QByteArray QIconvCodec::convertFromUnicode(const QChar *uc, int len, ConverterSt default: { // note, cannot use qWarning() since we are implementing the codecForLocale :) - perror("QIconvCodec::convertFromUnicode: using ASCII for conversion, iconv failed"); + perror("QIconvCodec::convertFromUnicode: using Latin-1 for conversion, iconv failed"); // reset to initial state iconv(state->cd, 0, &inBytesLeft, 0, &outBytesLeft); - return QString(uc, len).toAscii(); + return QString(uc, len).toLatin1(); } } } |