WelcomeWelcome | FAQFAQ | DownloadsDownloads | WikiWiki

Author Topic: qt-4.x can not decode characters  (Read 2411 times)

Offline Arslan S.

  • Hero Member
  • *****
  • Posts: 825
qt-4.x can not decode characters
« on: August 06, 2010, 10:50:43 PM »
see difference between :
kwrite qt 4.x
http://img7.imageshack.us/img7/1607/qt4.png
leafpad gtk2
http://img534.imageshack.us/img534/1899/gtk2.png

file juk.desktop has utf-8 encoding
Code: [Select]
$ file --mime-encoding juk.desktop
juk.desktop: utf-8

we don't have iconv support in glibc ? is that correct ?
if so then qt-4.x is better be compiled with libiconv ?

when i try to compile qt 4.x with iconv support configure fails
Code: [Select]
POSIX iconv auto-detection... ()
g++ -c -pipe -O2 -Wall -W  -I../../../mkspecs/linux-g++ -I. -o iconv.o iconv.cpp
g++ -Wl,-O1 -o iconv iconv.o     
iconv.o: In function `main':
iconv.cpp:(.text+0x1a): undefined reference to `libiconv_open'
iconv.cpp:(.text+0x44): undefined reference to `libiconv'
iconv.cpp:(.text+0x4c): undefined reference to `libiconv_close'
collect2: ld returned 1 exit status
make: *** [iconv] Error 1
POSIX iconv disabled.
GNU libiconv auto-detection... ()
g++ -c -pipe -O2 -Wall -W  -I../../../mkspecs/linux-g++ -I. -o gnu-libiconv.o gnu-libiconv.cpp
gnu-libiconv.cpp: In function 'int main(int, char**)':
gnu-libiconv.cpp:54: error: invalid conversion from 'const char**' to 'char**'
gnu-libiconv.cpp:54: error:   initializing argument 2 of 'size_t libiconv(void*, char**, size_t*, char**, size_t*)'
make: *** [gnu-libiconv.o] Error 1
GNU libiconv disabled.
Iconv support cannot be enabled due to functionality tests!

« Last Edit: August 06, 2010, 11:23:27 PM by Arslan S. »

Offline Arslan S.

  • Hero Member
  • *****
  • Posts: 825
Re: qt-4.x can not decode characters
« Reply #1 on: August 07, 2010, 12:50:12 AM »
ok there is iconv support in glibc and after uninstalling libiconv completely qt4 configure finds posix iconv and enables it so my thread turns into a request iconv support for qt-4.x :)

Code: [Select]
POSIX iconv auto-detection... ()
g++ -c -pipe -O2 -Wall -W  -I../../../mkspecs/linux-g++ -I. -o iconv.o iconv.cpp
g++ -Wl,-O1 -o iconv iconv.o      
POSIX iconv enabled.

gentoo bug report for the same problem
http://bugs.gentoo.org/show_bug.cgi?format=multiple&id=256990
« Last Edit: August 07, 2010, 12:54:58 AM by Arslan S. »