QT incorrectly determines the default locale from the LC_* variables
QT 4.7, included in Ubuntu Oneiric Ocelot, incorrectly determines the default locale, causing QT-based programs to use the wrong language for the user interface, among other things.
There is already a bug report for this in QT: https:/
The problem appears to be that QT incorrectly uses the LC_NUMERIC variable to determine the default locale (when it should only determine the number format to use), and ignores the LANG variable. My locale settings are as follows:
And yet QT based programs (in contrast with all other programs on my computer) use Dutch for the user interface, when they should be using English as indicated by the LANG variable. Setting LC_ALL causes them to use English, but that is not an acceptable solution since LC_ALL overrides all the other LC_* variables.
DistroRelease: Ubuntu 11.10
Package: libqtcore4 4:4.7.4-0ubuntu8
Uname: Linux 3.0.0-14-generic x86_64
Date: Thu Jan 19 16:50:29 2012
InstallationMedia: Ubuntu 10.10 "Maverick Meerkat" - Release amd64 (20101007)
UpgradeStatus: Upgraded to oneiric on 2011-11-23 (57 days ago)