You are not logged in.

#1 2013-01-01 17:10:27

MrJabucko
Member
Registered: 2012-12-28
Posts: 7

[SOLVED] Eastern arabic numerals in Qt/KDE applications

Hi,

i have issue with Qt based applications -> they use eastern arabic numerals
eastern_arabic_numerals.jpg

I tried using another DE (xfce, lxde, gnome) and also X only ("sudo startx" from tty), the problem persisted. In GTK applications is everything correct. For example, Transmission has both GTK and Qt frontends, so i tried it - the Qt one has the problem present.
http://tinypic.com/r/2z8vsxi/6
(sorry about the locale in the GTK one (right), i don't know how to switch locale of it from KDE)

Almost all KDE apps suffer from this (KTorrent, Amarok, KDE Telepathy, KMail...)
From non-KDE applications is there also Skype, which has also this problem (and presence of issue in Skype led me to conclusion that problem is with config of Qt itself, not KDE)

I believe that i have just something misconfigured, but i don't know where i should search for such configuration, i already tried google.

What is weird for me, this also happened in Chakra, which installation is like next->next->next->finish, however in Kubuntu numerals were correct.

Computer is HP Probook 4530s A1D23EA, bios F.29.

Any ideas?

Thanks in advance.

EDIT / Solution:
It's bug in Qt 4.8.4 only in Slovak locale. Since it has been fixed already (according to https://bugreports.qt-project.org/browse/QTBUG-28843) in Qt 4.8.5 but this version is not yet in repo, i made a workaround for that.
1. uncomment some other locale in /etc/locale.gen ( i used en_US.UTF-8 UTF-8)
2. re-generate locales with locale-gen
3. edit /etc/locale.conf and add line LC_NUMERIC="en_US.UTF-8" (or whatever you decided to use)
4. reboot

Last edited by MrJabucko (2013-01-08 14:00:04)

Offline

#2 2013-01-01 17:28:16

cfr
Member
From: Cymru
Registered: 2011-11-27
Posts: 7,148

Re: [SOLVED] Eastern arabic numerals in Qt/KDE applications

What is the output of locale?


CLI Paste | How To Ask Questions

Arch Linux | x86_64 | GPT | EFI boot | refind | stub loader | systemd | LVM2 on LUKS
Lenovo x270 | Intel(R) Core(TM) i5-7200U CPU @ 2.50GHz | Intel Wireless 8265/8275 | US keyboard w/ Euro | 512G NVMe INTEL SSDPEKKF512G7L

Offline

#3 2013-01-01 17:38:55

MrJabucko
Member
Registered: 2012-12-28
Posts: 7

Re: [SOLVED] Eastern arabic numerals in Qt/KDE applications

LANG=sk_SK.UTF-8
LC_CTYPE="sk_SK.UTF-8"
LC_NUMERIC="sk_SK.UTF-8"
LC_TIME="sk_SK.UTF-8"
LC_COLLATE="sk_SK.UTF-8"
LC_MONETARY="sk_SK.UTF-8"
LC_MESSAGES="sk_SK.UTF-8"
LC_PAPER="sk_SK.UTF-8"
LC_NAME="sk_SK.UTF-8"
LC_ADDRESS="sk_SK.UTF-8"
LC_TELEPHONE="sk_SK.UTF-8"
LC_MEASUREMENT="sk_SK.UTF-8"
LC_IDENTIFICATION="sk_SK.UTF-8"
LC_ALL=

Offline

#4 2013-01-01 17:39:33

gofree
Member
From: Slovakia
Registered: 2008-07-26
Posts: 51

Re: [SOLVED] Eastern arabic numerals in Qt/KDE applications

I can confirm the same issue Lenovo Thinkpad Edge E530

locale output:

[root@gofree gofree]# locale
LANG=sk_SK.utf8
LC_CTYPE="sk_SK.utf8"
LC_NUMERIC="sk_SK.utf8"
LC_TIME="sk_SK.utf8"
LC_COLLATE="sk_SK.utf8"
LC_MONETARY="sk_SK.utf8"
LC_MESSAGES="sk_SK.utf8"
LC_PAPER="sk_SK.utf8"
LC_NAME="sk_SK.utf8"
LC_ADDRESS="sk_SK.utf8"
LC_TELEPHONE="sk_SK.utf8"
LC_MEASUREMENT="sk_SK.utf8"
LC_IDENTIFICATION="sk_SK.utf8"
LC_ALL=

Last edited by gofree (2013-01-01 17:40:17)

Offline

#5 2013-01-01 18:38:24

cfr
Member
From: Cymru
Registered: 2011-11-27
Posts: 7,148

Re: [SOLVED] Eastern arabic numerals in Qt/KDE applications

Have you checked the locale settings for KDE specifically? I guess those might well override the settings selected with locale stuff.


CLI Paste | How To Ask Questions

Arch Linux | x86_64 | GPT | EFI boot | refind | stub loader | systemd | LVM2 on LUKS
Lenovo x270 | Intel(R) Core(TM) i5-7200U CPU @ 2.50GHz | Intel Wireless 8265/8275 | US keyboard w/ Euro | 512G NVMe INTEL SSDPEKKF512G7L

Offline

#6 2013-01-01 18:48:19

MrJabucko
Member
Registered: 2012-12-28
Posts: 7

Re: [SOLVED] Eastern arabic numerals in Qt/KDE applications

They are correct, i already checked them multiple times. And the issue is not present only in KDE, it is in every environment, as long as application uses Qt.

Offline

#7 2013-01-01 18:58:16

gofree
Member
From: Slovakia
Registered: 2008-07-26
Posts: 51

Re: [SOLVED] Eastern arabic numerals in Qt/KDE applications

KDE not installed, I'm using gnome. I also though it could be qt related.

Offline

#8 2013-01-03 19:46:59

gofree
Member
From: Slovakia
Registered: 2008-07-26
Posts: 51

Re: [SOLVED] Eastern arabic numerals in Qt/KDE applications

Just an idea, might it somehow realted to qt package for slovak locales, as we both have it.

Any idea?

smplayer.png

Offline

#9 2013-01-04 14:51:49

MrJabucko
Member
Registered: 2012-12-28
Posts: 7

Re: [SOLVED] Eastern arabic numerals in Qt/KDE applications

This is possible, but i have no idea where to search for such configuration. I'll try to find it, it is very annoying issue, especially in KDE, where is just everything built around Qt.

Offline

#10 2013-01-07 18:24:33

MrJabucko
Member
Registered: 2012-12-28
Posts: 7

Re: [SOLVED] Eastern arabic numerals in Qt/KDE applications

Solution found (but not tested yet), looks like it's bug in Qt 4.8.4 https://bugreports.qt-project.org/browse/QTBUG-28843 and it's already fixed in 4.8.5, but the fixed version is not yet in repository (qt is already flagged as out of date since 2012-12-19 https://www.archlinux.org/packages/extra/x86_64/qt/) Will mark topic as solved as soon as will be updated qt in repo and tested.

Offline

Board footer

Powered by FluxBB