maratik@lcvision ~/tutorial/des $ mkdir -p qt-example && cd qt-example && echo -en "#include <QLocale>\n#include<QtDebug>\n#include<QCoreApplication>\nint main(int argc, char *argv[]){\nQCoreApplication app(argc, argv);\nqDebug() << \"Locale in Qt4 is \" << QLocale::system().name();}\n" > qt-example.cpp && /usr/bin/qmake -project && /usr/bin/qmake && make && ./qt-example && cd .. && rm -rf qt-example && locale && /usr/bin/qmake -v g++ -c -pipe -mtune=pentium4m -march=pentium4m -pipe -O2 -Wall -W -D_REENTRANT -DQT_NO_DEBUG -DQT_GUI_LIB -DQT_CORE_LIB -DQT_SHARED -I/usr/share/qt4/mkspecs/linux-g++ -I. -I/usr/include/qt4/QtCore -I/usr/include/qt4/QtGui -I/usr/include/qt4 -I. -I. -I. -o qt-example.o qt-example.cpp g++ -o qt-example qt-example.o -L/usr/lib/qt4 -lQtGui -L/usr/lib/mysql -L/usr/lib/qt4 -L/usr/lib -laudio -lXt -lpng -lSM -lICE -lXi -lXrender -lXrandr -lXcursor -lfreetype -lfontconfig -lXext -lX11 -lQtCore -lz -lm -ldl -lpthread Locale in Qt4 is "C" LANG=ru_RU.UTF-8 LC_CTYPE="ru_RU.UTF-8" LC_NUMERIC="ru_RU.UTF-8" LC_TIME="ru_RU.UTF-8" LC_COLLATE="ru_RU.UTF-8" LC_MONETARY="ru_RU.UTF-8" LC_MESSAGES="ru_RU.UTF-8" LC_PAPER="ru_RU.UTF-8" LC_NAME="ru_RU.UTF-8" LC_ADDRESS="ru_RU.UTF-8" LC_TELEPHONE="ru_RU.UTF-8" LC_MEASUREMENT="ru_RU.UTF-8" LC_IDENTIFICATION="ru_RU.UTF-8" LC_ALL= QMake version: 2.00a Using Qt version 4.1.4 in /usr/lib/qt4 ---------------------- but expected: Locale in Qt4 is "ru_RU" -------------- emerge --info qt Portage 2.1.1 (default-linux/x86/2006.1/desktop, gcc-4.1.1, glibc-2.4-r3, 2.6.17-reiser4-r8 i686) ================================================================= System uname: 2.6.17-reiser4-r8 i686 Mobile Intel(R) Pentium(R) 4 - M CPU 2.00GHz Gentoo Base System version 1.12.5 Last Sync: Tue, 10 Oct 2006 01:53:01 +0000 distcc 2.18.3 i686-pc-linux-gnu (protocols 1 and 2) (default port 3632) [disabled] ccache version 2.3 [enabled] app-admin/eselect-compiler: [Not Present] dev-java/java-config: 1.2.11-r1 dev-lang/python: 2.4.3-r4 dev-python/pycrypto: 2.0.1-r5 dev-util/ccache: 2.3 dev-util/confcache: [Not Present] sys-apps/sandbox: 1.2.17 sys-devel/autoconf: 2.13, 2.59-r7 sys-devel/automake: 1.4_p6, 1.5, 1.6.3, 1.7.9-r1, 1.8.5-r3, 1.9.6-r2 sys-devel/binutils: 2.16.1-r3 sys-devel/gcc-config: 1.3.13-r4 sys-devel/libtool: 1.5.22 virtual/os-headers: 2.6.17-r1 ACCEPT_KEYWORDS="x86" AUTOCLEAN="yes" CBUILD="i686-pc-linux-gnu" CFLAGS="-mtune=pentium4m -march=pentium4m -O3 -pipe -fomit-frame-pointer -msse -msse2 -mmmx -momit-leaf-frame-pointer -mfpmath=sse -ftracer -freorder-blocks-and-partition" CHOST="i686-pc-linux-gnu" CONFIG_PROTECT="/etc /usr/kde/3.5/env /usr/kde/3.5/share/config /usr/kde/3.5/shutdown /usr/share/X11/xkb /usr/share/config" CONFIG_PROTECT_MASK="/etc/env.d /etc/gconf /etc/revdep-rebuild /etc/terminfo" CXXFLAGS="-mtune=pentium4m -march=pentium4m -O3 -pipe -fomit-frame-pointer -msse -msse2 -mmmx -momit-leaf-frame-pointer -mfpmath=sse -ftracer -freorder-blocks-and-partition -fvisibility-inlines-hidden" DISTDIR="/usr/portage/distfiles" FEATURES="autoconfig ccache distlocks metadata-transfer sandbox sfperms strict" GENTOO_MIRRORS="http://distfiles.gentoo.org http://www.ibiblio.org/pub/Linux/distributions/gentoo" LANG="ru_RU.UTF-8" LC_ALL="" LDFLAGS="" LINGUAS="en ru" MAKEOPTS="-j2" PKGDIR="/usr/portage/packages" PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --delete-after --stats --timeout=180 --exclude='/distfiles' --exclude='/local' --exclude='/packages'" PORTAGE_TMPDIR="/var/tmp" PORTDIR="/usr/portage" PORTDIR_OVERLAY="/usr/local/portage" SYNC="rsync://rsync.gentoo.org/gentoo-portage" USE="x86 7zip X X509 a52 aac acpi alsa amarok amr ao aoss aotuv apache2 arts artworkextra asf bash-completion berkdb bitmap-fonts bonobo bzip2 c++ cairo ccache cdda cddb cli cpudetection crypt cups curl dbus djbfft djvu dlloader dts dvd eds elibc_glibc emboss emf encode esd exif expat fam fat ffmpeg firefox flac fortran fpx gdbm gif glibc-omitfp glut gmp gnome gnutls gpm graphviz gs gstreamer gtk gtkhtml guile gzip hal imagemagick imlib input_devices_keyboard input_devices_mouse input_devices_vmmouse ipv6 isdnlog ithreads java javascript jbig jpeg jpeg2k kde kdexdeltas kernel_linux lame lcms ldap libcaca libg++ linguas_en linguas_ru logrotate lzo lzw mad matroska mikmod mime mmap mmx mng mozsvg mp3 mp4 mp4live mpeg mpeg2 mplayer multiuser musepack mysql mysqli nas ncurses nls no-old-linux nptl nptlonly nsplugin numarray numeric offensive ogg opengl oscar oss pam pango pch pcre pdf perl pg-hier pg-vacuumdelay pheaders png ppds pppd python qt3 qt4 quicktime readline real reflection reiser4 reiserfs rle samba sdl seamonkey session sndfile spell spl sql sqlite sqlite3 sse sse-filters sse2 ssl svg svgz swat syslog szip tcpd tga theora threads tiff truetype truetype-fonts type1 type1-fonts udev unicode userland_GNU vcd video_cards_vmware vorbis win32codecs wma wmf wmp x264 xine xinetd xml xorg xosd xpm xprint xv xvid xvmc zip zlib" Unset: CTARGET, EMERGE_DEFAULT_OPTS, INSTALL_MASK, PORTAGE_RSYNC_EXTRA_OPTS ================================================================= Package Settings ================================================================= x11-libs/qt-3.3.6-r1 was built with the following: CFLAGS="-O2 -fno-strict-aliasing -march=pentium4m -mtune=pentium4m -pipe" CXXFLAGS="-O2 -fno-strict-aliasing -march=pentium4m -mtune=pentium4m -pipe" x11-libs/qt-4.1.4 was built with the following: CFLAGS="-O2 -march=pentium4m -mtune=pentium4m -pipe" CXXFLAGS="-O2 -march=pentium4m -mtune=pentium4m -pipe"
Found that Qt accepts LC_ALL. But for some reason ignores LANG :-\
I suppose this is something you'll need to address with Trolltech if you would like support for it.