Details
-
Bug
-
Resolution: Done
-
P3: Somewhat important
-
4.6.2
-
None
-
QtSDK 2010.02 (Qt 4.6.2)
System uname: Linux-2.6.31-gentoo-r6-x86_64-Intel-R-_Core-TM-2_Duo_CPU_E8500_@_3.16GHz-with-gentoo-2.0.1
app-shells/bash: 4.0_p35
sys-devel/autoconf: 2.13, 2.63-r1
sys-devel/automake: 1.4_p6, 1.5, 1.7.9-r2, 1.8.5-r3, 1.9.6-r2, 1.10.3
sys-devel/binutils: 2.18-r3
sys-devel/gcc: 3.4.6-r2, 4.1.2, 4.3.4
sys-devel/gcc-config: 1.4.1
sys-devel/libtool: 2.2.6b
virtual/os-headers: 2.6.30-r1
CFLAGS="-march=nocona -O2 -pipe"
CHOST="x86_64-pc-linux-gnu"
CXXFLAGS="-O2 -pipe"
LANG="ru_RU.UTF-8"
LC_ALL=""
LDFLAGS="-Wl,-O1"
gcc version 4.3.4 (Gentoo 4.3.4 p1.0, pie-10.1.5)
Target: x86_64-pc-linux-gnu
Configured with: /var/tmp/portage/sys-devel/gcc-4.3.4/work/gcc-4.3.4/configure --prefix=/usr --bindir=/usr/x86_64-pc-linux-gnu/gcc-bin/4.3.4 --includedir=/usr/lib/gcc/x86_64-pc-linux-gnu/4.3.4/include --datadir=/usr/share/gcc-data/x86_64-pc-linux-gnu/4.3.4 --mandir=/usr/share/gcc-data/x86_64-pc-linux-gnu/4.3.4/man --infodir=/usr/share/gcc-data/x86_64-pc-linux-gnu/4.3.4/info --with-gxx-include-dir=/usr/lib/gcc/x86_64-pc-linux-gnu/4.3.4/include/g++-v4 --host=x86_64-pc-linux-gnu --build=x86_64-pc-linux-gnu --disable-altivec --disable-fixed-point --enable-nls --without-included-gettext --with-system-zlib --disable-checking --disable-werror --enable-secureplt --enable-multilib --enable-libmudflap --disable-libssp --enable-libgomp --disable-libgcj --enable-languages=c,c++,treelang,fortran --enable-shared --enable-threads=posix --enable-__cxa_atexit --enable-clocale=gnu --with-bugurl=http://bugs.gentoo.org/ --with-pkgversion='Gentoo 4.3.4 p1.0, pie-10.1.5'
Thread model: posix
QtSDK 2010.02 (Qt 4.6.2) System uname: Linux-2.6.31-gentoo-r6-x86_64-Intel-R-_Core-TM-2_Duo_CPU_E8500_@_3.16GHz-with-gentoo-2.0.1 app-shells/bash: 4.0_p35 sys-devel/autoconf: 2.13, 2.63-r1 sys-devel/automake: 1.4_p6, 1.5, 1.7.9-r2, 1.8.5-r3, 1.9.6-r2, 1.10.3 sys-devel/binutils: 2.18-r3 sys-devel/gcc: 3.4.6-r2, 4.1.2, 4.3.4 sys-devel/gcc-config: 1.4.1 sys-devel/libtool: 2.2.6b virtual/os-headers: 2.6.30-r1 CFLAGS="-march=nocona -O2 -pipe" CHOST="x86_64-pc-linux-gnu" CXXFLAGS="-O2 -pipe" LANG="ru_RU.UTF-8" LC_ALL="" LDFLAGS="-Wl,-O1" gcc version 4.3.4 (Gentoo 4.3.4 p1.0, pie-10.1.5) Target: x86_64-pc-linux-gnu Configured with: /var/tmp/portage/sys-devel/gcc-4.3.4/work/gcc-4.3.4/configure --prefix=/usr --bindir=/usr/x86_64-pc-linux-gnu/gcc-bin/4.3.4 --includedir=/usr/lib/gcc/x86_64-pc-linux-gnu/4.3.4/include --datadir=/usr/share/gcc-data/x86_64-pc-linux-gnu/4.3.4 --mandir=/usr/share/gcc-data/x86_64-pc-linux-gnu/4.3.4/man --infodir=/usr/share/gcc-data/x86_64-pc-linux-gnu/4.3.4/info --with-gxx-include-dir=/usr/lib/gcc/x86_64-pc-linux-gnu/4.3.4/include/g++-v4 --host=x86_64-pc-linux-gnu --build=x86_64-pc-linux-gnu --disable-altivec --disable-fixed-point --enable-nls --without-included-gettext --with-system-zlib --disable-checking --disable-werror --enable-secureplt --enable-multilib --enable-libmudflap --disable-libssp --enable-libgomp --disable-libgcj --enable-languages=c,c++,treelang,fortran --enable-shared --enable-threads=posix --enable-__cxa_atexit --enable-clocale=gnu --with-bugurl= http://bugs.gentoo.org/ --with-pkgversion='Gentoo 4.3.4 p1.0, pie-10.1.5' Thread model: posix
Description
Below is the example program and it's results:
{vl}[vl@qtbug]$ ls qt_app.cpp {vl}[vl@qtbug]$ cat qt_app.cpp #include <QDebug> #include <stdio.h> #include <time.h> #include <locale.h> int main () { time_t rawtime; struct tm * timeinfo; char buffer [80]; struct lconv * lc; time ( &rawtime ); timeinfo = localtime ( &rawtime ); int twice=0; do { printf("------\n"); printf ("C Locale is: %s\n", setlocale(LC_ALL,NULL) ); strftime (buffer,80,"%c",timeinfo); printf ("Date is: %s\n",buffer); lc = localeconv (); printf ("Currency symbol is: %s\n-\n",lc->currency_symbol); QLocale locale; qDebug() << "QLocale name:" << locale.name(); qDebug() << "QLocale name(static):" << QLocale::system().name(); setlocale (LC_ALL,""); } while (!twice++); return 0; }
Unknown macro: {vl}[vl@qtbug]$ uname -a
Linux vl 2.6.31-gentoo-r6 #3 SMP PREEMPT Fri Jan 1 22:13:49 MSK 2010 x86_64 Intel(R) Core(TM)2 Duo CPU E8500 @ 3.16GHz GenuineIntel GNU/Linux[vl@qtbug]$ echo $LANG
ru_RU.UTF-8Unknown macro: {vl}[vl@qtbug]$ g++ -pipe -O2 -pipe -Wall -W -D_REENTRANT -DQT_NO_DEBUG -DQT_GUI_LIB -DQT_CORE_LIB -DQT_SHARED -I/home/vl/opt/qtsdk-2010.02/qt/mkspecs/linux-g++ -I. -I/home/vl/opt/qtsdk-2010.02/qt/include/QtCore/ -I/home/vl/opt/qtsdk-2010.02/qt/include qt_app.cpp -L/home/vl/opt/qtsdk-2010.02/qt/lib -lQtCore -lgthread-2.0 -lrt -lglib-2.0 -lpthread -o qt_app
[vl@qtbug]$ ldd ./qt_app
linux-vdso.so.1 => (0x00007fff177c9000)
libQtCore.so.4 => /home/vl/opt/qtsdk-2010.02/qt/lib/libQtCore.so.4 (0x00007fcb2f4bc000)
libgthread-2.0.so.0 => /usr/lib/libgthread-2.0.so.0 (0x00007fcb2f2b7000)
librt.so.1 => /lib/librt.so.1 (0x00007fcb2f0ae000)
libglib-2.0.so.0 => /usr/lib/libglib-2.0.so.0 (0x00007fcb2edd3000)
libpthread.so.0 => /lib/libpthread.so.0 (0x00007fcb2ebb7000)
libstdc+.so.6 => /usr/lib/gcc/x86_64-pc-linux-gnu/4.3.4/libstdc+.so.6 (0x00007fcb2e8ac000)
libm.so.6 => /lib/libm.so.6 (0x00007fcb2e629000)
libgcc_s.so.1 => /lib/libgcc_s.so.1 (0x00007fcb2e413000)
libc.so.6 => /lib/libc.so.6 (0x00007fcb2e0ba000)
libdl.so.2 => /lib/libdl.so.2 (0x00007fcb2deb6000)
/lib64/ld-linux-x86-64.so.2 (0x00007fcb2f96d000)Unknown macro: {vl}[vl@qtbug]$ ./qt_app
------
C Locale is: C
Date is: Sun Mar 28 23:04:25 2010
Currency symbol is:
-
QLocale name: "C"
QLocale name(static): "C"
------
C Locale is: LC_CTYPE=ru_RU.UTF-8;LC_NUMERIC=C;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
Date is: Вск 28 Мар 2010 23:04:25
Currency symbol is: руб
-
QLocale name: "C"
QLocale name(static): "C"