mailarchive of the ptxdist mailing list
 help / color / mirror / Atom feed
* [ptxdist] Qt5 and iconv: QIconvCodec::convertToUnicode: using Latin-1 for conversion, iconv_open failed
@ 2015-11-04 14:59 Matthias Klein
  2015-11-06 11:39 ` Michael Olbrich
  0 siblings, 1 reply; 3+ messages in thread
From: Matthias Klein @ 2015-11-04 14:59 UTC (permalink / raw)
  To: ptxdist


[-- Attachment #1.1: Type: text/plain, Size: 1189 bytes --]

Hello,

every qt5 (console programm) which I compile against qt5 from the latest 
ptxdist version showes the following messages at start: (but then starts 
/ runs)
QIconvCodec::convertToUnicode: using Latin-1 for conversion, iconv_open 
failed
QIconvCodec::convertFromUnicode: using Latin-1 for conversion, 
iconv_open failed
The libc contains the iconv functions:
/opt/OSELAS.Toolchain-2014.12.1/arm-cortexa8-linux-gnueabihf/gcc-4.9.2-glibc-2.20-binutils-2.24-kernel-3.16-sanitized/bin/arm-cortexa8-linux-gnueabihf-nm 
~/bsp/platform-tx53-3.12-rt/root-debug/lib/libc-2.20.so | grep iconv
00016c18 T iconv
00016d54 T iconv_close
00016a90 T iconv_open
There are also modules in the rootfs
ls -l /usr/lib/gconv/
-rwxr-xr-x    1 root     root          5504 Nov  4 12:46 ISO8859-1.so
-rwxr-xr-x    1 root     root          9600 Nov  4 12:46 ISO8859-15.so
-rw-r--r--    1 root     root         56284 Nov  4 12:46 gconv-modules

The same console application did run without these messages when 
building against qt4.
(The qt5 build (and the qt4 build in the past) is without GUI)

Does anyone has a tip whats the reason for these messages?


Best regards,
Matthias

[-- Attachment #1.2: Type: text/html, Size: 2347 bytes --]

[-- Attachment #2: Type: text/plain, Size: 91 bytes --]

_______________________________________________
ptxdist mailing list
ptxdist@pengutronix.de

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: [ptxdist] Qt5 and iconv: QIconvCodec::convertToUnicode: using Latin-1 for conversion, iconv_open failed
  2015-11-04 14:59 [ptxdist] Qt5 and iconv: QIconvCodec::convertToUnicode: using Latin-1 for conversion, iconv_open failed Matthias Klein
@ 2015-11-06 11:39 ` Michael Olbrich
  2015-11-09  8:16   ` Matthias Klein
  0 siblings, 1 reply; 3+ messages in thread
From: Michael Olbrich @ 2015-11-06 11:39 UTC (permalink / raw)
  To: ptxdist

On Wed, Nov 04, 2015 at 02:59:05PM +0000, Matthias Klein wrote:
> Hello,
> 
> every qt5 (console programm) which I compile against qt5 from the latest
> ptxdist version showes the following messages at start: (but then starts /
> runs)
> QIconvCodec::convertToUnicode: using Latin-1 for conversion, iconv_open
> failed
> QIconvCodec::convertFromUnicode: using Latin-1 for conversion, iconv_open
> failed
> The libc contains the iconv functions:
> /opt/OSELAS.Toolchain-2014.12.1/arm-cortexa8-linux-gnueabihf/gcc-4.9.2-glibc-2.20-binutils-2.24-kernel-3.16-sanitized/bin/arm-cortexa8-linux-gnueabihf-nm
> ~/bsp/platform-tx53-3.12-rt/root-debug/lib/libc-2.20.so | grep iconv
> 00016c18 T iconv
> 00016d54 T iconv_close
> 00016a90 T iconv_open
> There are also modules in the rootfs
> ls -l /usr/lib/gconv/
> -rwxr-xr-x    1 root     root          5504 Nov  4 12:46 ISO8859-1.so
> -rwxr-xr-x    1 root     root          9600 Nov  4 12:46 ISO8859-15.so
> -rw-r--r--    1 root     root         56284 Nov  4 12:46 gconv-modules
> 
> The same console application did run without these messages when building
> against qt4.
> (The qt5 build (and the qt4 build in the past) is without GUI)
> 
> Does anyone has a tip whats the reason for these messages?

I don't know why this happens in qt5 and not in qt4 but I think enabling
the gconv unicode modules (GLIBC_GCONV_UTF) should help.

Michael

-- 
Pengutronix e.K.                           |                             |
Industrial Linux Solutions                 | http://www.pengutronix.de/  |
Peiner Str. 6-8, 31137 Hildesheim, Germany | Phone: +49-5121-206917-0    |
Amtsgericht Hildesheim, HRA 2686           | Fax:   +49-5121-206917-5555 |

_______________________________________________
ptxdist mailing list
ptxdist@pengutronix.de

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: [ptxdist] Qt5 and iconv: QIconvCodec::convertToUnicode: using Latin-1 for conversion, iconv_open failed
  2015-11-06 11:39 ` Michael Olbrich
@ 2015-11-09  8:16   ` Matthias Klein
  0 siblings, 0 replies; 3+ messages in thread
From: Matthias Klein @ 2015-11-09  8:16 UTC (permalink / raw)
  To: ptxdist


------ Originalnachricht ------
Von: "Michael Olbrich" <m.olbrich@pengutronix.de>
An: ptxdist@pengutronix.de
Gesendet: 06.11.2015 12:39:06
Betreff: Re: [ptxdist] Qt5 and iconv: QIconvCodec::convertToUnicode: 
using Latin-1 for conversion, iconv_open failed

>
>I don't know why this happens in qt5 and not in qt4 but I think 
>enabling
>the gconv unicode modules (GLIBC_GCONV_UTF) should help.

Yes, that helps. Thank you very much!


Best regards,
Matthias


_______________________________________________
ptxdist mailing list
ptxdist@pengutronix.de

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2015-11-09  8:16 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2015-11-04 14:59 [ptxdist] Qt5 and iconv: QIconvCodec::convertToUnicode: using Latin-1 for conversion, iconv_open failed Matthias Klein
2015-11-06 11:39 ` Michael Olbrich
2015-11-09  8:16   ` Matthias Klein

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox