diff options
author | Jonathan Liu <net147@gmail.com> | 2013-06-20 23:19:53 +1000 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2013-06-21 09:19:27 +0100 |
commit | ed4a919cae7b1e03d0cb83636ce88f50a3ca1d16 (patch) | |
tree | ac949804763e09fe76be483ff58ed163ecf3329a /meta/recipes-qt | |
parent | 78bcf871c65a87df8b40a0b09654d74434e4d01c (diff) | |
download | poky-ed4a919cae7b1e03d0cb83636ce88f50a3ca1d16.tar.gz |
qt4: add eglibc-gconv-utf-16 to QtCore RRECOMMENDS when using glibc
This fixes the following warnings when running Qt applications:
QIconvCodec::convertFromUnicode: using Latin-1 for conversion, iconv_open failed
QIconvCodec::convertToUnicode: using Latin-1 for conversion, iconv_open failed
Qt's QString class stores strings internally using UTF-16 encoding.
The UTF-16 iconv module is needed to convert between the system's local
8-bit representation and QString's UTF-16 encoding.
For example, the following functions would be affected:
QString::fromLocal8Bit(...)
QString::toLocal8Bit(...)
If the UTF-16 iconv module couldn't be loaded, it would use Latin-1
encoding instead of the system's encoding for conversion.
[YOCTO #349]
(From OE-Core rev: 2e9c8007bca684149d72e96423f30433b6665fad)
Signed-off-by: Jonathan Liu <net147@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/recipes-qt')
-rw-r--r-- | meta/recipes-qt/qt4/qt4.inc | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/meta/recipes-qt/qt4/qt4.inc b/meta/recipes-qt/qt4/qt4.inc index 828e30af79..ebe0ea501b 100644 --- a/meta/recipes-qt/qt4/qt4.inc +++ b/meta/recipes-qt/qt4/qt4.inc | |||
@@ -134,6 +134,7 @@ FILES_${QT_BASE_NAME}-demos-doc = "${docdir}/${QT_DIR_NAME}/qch/qt.qch" | |||
134 | RRECOMMENDS_${PN} = "${LIB_PACKAGES} ${OTHER_PACKAGES}" | 134 | RRECOMMENDS_${PN} = "${LIB_PACKAGES} ${OTHER_PACKAGES}" |
135 | RRECOMMENDS_${PN}-dev = "${DEV_PACKAGES}" | 135 | RRECOMMENDS_${PN}-dev = "${DEV_PACKAGES}" |
136 | RRECOMMENDS_${PN}-dbg = "${DBG_PACKAGES}" | 136 | RRECOMMENDS_${PN}-dbg = "${DBG_PACKAGES}" |
137 | RRECOMMENDS_${QT_BASE_LIB}core4_append_libc-glibc = " eglibc-gconv-utf-16" | ||
137 | RRECOMMENDS_${QT_BASE_NAME}-demos += " \ | 138 | RRECOMMENDS_${QT_BASE_NAME}-demos += " \ |
138 | ${QT_BASE_NAME}-examples \ | 139 | ${QT_BASE_NAME}-examples \ |
139 | ${QT_BASE_NAME}-plugin-sqldriver-sqlite \ | 140 | ${QT_BASE_NAME}-plugin-sqldriver-sqlite \ |