* [PATCH] qt4: add eglibc-gconv-utf-16 to QtCore RRECOMMENDS when using glibc
@ 2013-06-20 13:19 Jonathan Liu
2013-06-20 14:50 ` Paul Eggleton
0 siblings, 1 reply; 2+ messages in thread
From: Jonathan Liu @ 2013-06-20 13:19 UTC (permalink / raw)
To: openembedded-core
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]
Signed-off-by: Jonathan Liu <net147@gmail.com>
---
meta/recipes-qt/qt4/qt4.inc | 1 +
1 file changed, 1 insertion(+)
diff --git a/meta/recipes-qt/qt4/qt4.inc b/meta/recipes-qt/qt4/qt4.inc
index 828e30a..ebe0ea5 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"
RRECOMMENDS_${PN} = "${LIB_PACKAGES} ${OTHER_PACKAGES}"
RRECOMMENDS_${PN}-dev = "${DEV_PACKAGES}"
RRECOMMENDS_${PN}-dbg = "${DBG_PACKAGES}"
+RRECOMMENDS_${QT_BASE_LIB}core4_append_libc-glibc = " eglibc-gconv-utf-16"
RRECOMMENDS_${QT_BASE_NAME}-demos += " \
${QT_BASE_NAME}-examples \
${QT_BASE_NAME}-plugin-sqldriver-sqlite \
--
1.8.3
^ permalink raw reply related [flat|nested] 2+ messages in thread* Re: [PATCH] qt4: add eglibc-gconv-utf-16 to QtCore RRECOMMENDS when using glibc
2013-06-20 13:19 [PATCH] qt4: add eglibc-gconv-utf-16 to QtCore RRECOMMENDS when using glibc Jonathan Liu
@ 2013-06-20 14:50 ` Paul Eggleton
0 siblings, 0 replies; 2+ messages in thread
From: Paul Eggleton @ 2013-06-20 14:50 UTC (permalink / raw)
To: Jonathan Liu; +Cc: openembedded-core
On Thursday 20 June 2013 23:19:53 Jonathan Liu wrote:
> 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]
>
> Signed-off-by: Jonathan Liu <net147@gmail.com>
> ---
> meta/recipes-qt/qt4/qt4.inc | 1 +
> 1 file changed, 1 insertion(+)
>
> diff --git a/meta/recipes-qt/qt4/qt4.inc b/meta/recipes-qt/qt4/qt4.inc
> index 828e30a..ebe0ea5 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" RRECOMMENDS_${PN} = "${LIB_PACKAGES}
> ${OTHER_PACKAGES}"
> RRECOMMENDS_${PN}-dev = "${DEV_PACKAGES}"
> RRECOMMENDS_${PN}-dbg = "${DBG_PACKAGES}"
> +RRECOMMENDS_${QT_BASE_LIB}core4_append_libc-glibc = " eglibc-gconv-utf-16"
> RRECOMMENDS_${QT_BASE_NAME}-demos += " \
> ${QT_BASE_NAME}-examples \
> ${QT_BASE_NAME}-plugin-sqldriver-sqlite \
Acked-by: Paul Eggleton <paul.eggleton@linux.intel.com>
Thanks for fixing this.
Cheers,
Paul
--
Paul Eggleton
Intel Open Source Technology Centre
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2013-06-20 14:50 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2013-06-20 13:19 [PATCH] qt4: add eglibc-gconv-utf-16 to QtCore RRECOMMENDS when using glibc Jonathan Liu
2013-06-20 14:50 ` Paul Eggleton
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox