Bug#327021: libqt3-mt: QString::arg(double) produces sometimes garbage
Package: libqt3-mt Version: 3:3.3.4-7 Severity: important A simple conversion of a double value into a QString with the standard QString::arg(...) function fails sometimes: --- code to reproduce bug #include qstring.h #include qregexp.h #include stdio.h int main (int argc, char* argv[]) { double myValue = 13.0; QString convertedFloat = QString (%1\n).arg ((double) myValue, 0, 'g', 7); printf (Converted value: %s\n, convertedFloat.latin1 ()); QRegExp unallowedChars ([a-zA-Z,;'?:\[EMAIL PROTECTED]*()-_+]); if (convertedFloat.contains (unallowedChars) 0) { printf (BUG: The conversion of a double failed.\n); return 1; } return 0; } --- end of code to reproduce bug Because there are no differences between the debian version of qstring.cpp and qlocale.cpp and the corresponding qt versions and because I got no problems when compiling the same version with a g++ of 3.3 or earlier I would not be surprised if it turns out to be a compiler bug of the gcc-3.4 and higher. -- System Information: Debian Release: testing/unstable APT prefers unstable APT policy: (500, 'unstable'), (500, 'testing'), (500, 'stable') Architecture: i386 (i686) Shell: /bin/sh linked to /bin/bash Kernel: Linux 2.6.11-1-686-smp Locale: LANG=C, LC_CTYPE=C (charmap=ANSI_X3.4-1968) Versions of packages libqt3-mt depends on: ii fontconfig2.3.2-1generic font configuration library ii libaudio2 1.7-3 The Network Audio System (NAS). (s ii libc6 2.3.5-6GNU C Library: Shared libraries an ii libfontconfig12.3.2-1generic font configuration library ii libfreetype6 2.1.10-1 FreeType 2 font engine, shared lib ii libgcc1 1:4.0.1-6 GCC support library ii libice6 6.8.2.dfsg.1-6 Inter-Client Exchange library ii libjpeg62 6b-10 The Independent JPEG Group's JPEG ii libmng1 1.0.8-1Multiple-image Network Graphics li ii libpng12-01.2.8rel-1 PNG library - runtime ii libsm66.8.2.dfsg.1-6 X Window System Session Management ii libstdc++64.0.1-6The GNU Standard C++ Library v3 ii libx11-6 6.8.2.dfsg.1-6 X Window System protocol client li ii libxcursor1 1.1.3-1X cursor management library ii libxext6 6.8.2.dfsg.1-6 X Window System miscellaneous exte ii libxft2 2.1.7-1FreeType-based font drawing librar ii libxinerama1 6.8.2.dfsg.1-6 X Window System multi-head display ii libxrandr26.8.2.dfsg.1-6 X Window System Resize, Rotate and ii libxrender1 1:0.9.0-2 X Rendering Extension client libra ii libxt66.8.2.dfsg.1-6 X Toolkit Intrinsics ii xlibs 6.8.2.dfsg.1-6 X Window System client libraries m ii zlib1g1:1.2.3-4 compression library - runtime libqt3-mt recommends no packages. -- no debconf information -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED]
Bug#327021: libqt3-mt: QString::arg(double) produces sometimes garbage
tags 326990 pending tags 327021 pending severity 327021 normal merge 326833 326990 327021 thanks I believe that this is the same problem that was resulting in invalid postscript when printing from qt or kde applications. (I traced function calls in the source, and QString::arg(double...) finally gets the string value from QLocale::qdtoa.) This was fixed in the commit of this patch to the qt packaging: http://lists.alioth.debian.org/pipermail/pkg-kde-commits/2005-September/001484.html This should be fixed in the next upload. Josh -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED]
Bug#326833: Printing Problem with latest unstable packages, Re: Bug#326990: libqt3-mt: Spinbox code is broken, Re: Bug#326833: kdelibs: KDE pseudoprinters do not work, Subject: Re: Bug#327021: libqt3-mt: QString::arg(double) produces sometimes garbage
Hello all, fixed Qt packages will be soon uploaded to unstable. In the meantime, can you confirm that they really fix the problem? Please install and test from the following repository: http://people.debian.org/~adeodato/tmp/2005-09-07/fixed-qt Thanks. * Rainer Kiehne [Wed, 07 Sep 2005 11:11:56 +0200]: HI My Problem is that printing out of konqueror (unstable) and other packages (kate) creates invalid postscript code i.e. printing into a postscript file results to: * Tibor Hajling [Tue, 06 Sep 2005 03:00:13 +0200]: Package: kdelibs Version: 4:3.4.2-3 Severity: normal When I try to print a testpage from KDE Control Panel to a pdf or ps pseudo printer KNotify gives me the following message: * Oleksandr Moskalenko [Tue, 06 Sep 2005 19:01:11 -0600]: Package: libqt3-mt Version: 3:3.3.4-7 Severity: normal I am packaging scribus. Recently a bug report came up upstream that scribus installed from a Debian package was corrupting produced pdfs and object properties on its canvas couldn't be set properly. It seems to present certain numbers in an incorrect form i.e. 12.:0 instead of 13 in a spinbox. Most of the time it also resets to 1 instead of advancing to such numbers. All efforts to locate the bug upstream pointed to Qt3. * Wolfgang Roemer [Wed, 07 Sep 2005 07:51:36 +0200]: Package: libqt3-mt Version: 3:3.3.4-7 Severity: important A simple conversion of a double value into a QString with the standard QString::arg(...) function fails sometimes: -- Adeodato Simó EM: asp16 [ykwim] alu.ua.es | PK: DA6AE621 Y sobre todo, tienes mucho de gilipollas. -- B.C.S. addressing P.G.i.Q in b8g -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED]
Bug#326990: Printing Problem with latest unstable packages, Re: Bug#326990: libqt3-mt: Spinbox code is broken, Re: Bug#326833: kdelibs: KDE pseudoprinters do not work, Subject: Re: Bug#327021: libqt3-mt: QString::arg(double) produces sometimes garbage
Hello, the fixed libqt3-mt package (3.3.4-8-pre1) does indeed solve the problem of QString::arg (double). WR On Wed Sep 07, 2005 16:26, Adeodato Simó wrote: Hello all, fixed Qt packages will be soon uploaded to unstable. In the meantime, can you confirm that they really fix the problem? Please install and test from the following repository: http://people.debian.org/~adeodato/tmp/2005-09-07/fixed-qt Thanks. * Rainer Kiehne [Wed, 07 Sep 2005 11:11:56 +0200]: HI My Problem is that printing out of konqueror (unstable) and other packages (kate) creates invalid postscript code i.e. printing into a postscript file results to: * Tibor Hajling [Tue, 06 Sep 2005 03:00:13 +0200]: Package: kdelibs Version: 4:3.4.2-3 Severity: normal When I try to print a testpage from KDE Control Panel to a pdf or ps pseudo printer KNotify gives me the following message: * Oleksandr Moskalenko [Tue, 06 Sep 2005 19:01:11 -0600]: Package: libqt3-mt Version: 3:3.3.4-7 Severity: normal I am packaging scribus. Recently a bug report came up upstream that scribus installed from a Debian package was corrupting produced pdfs and object properties on its canvas couldn't be set properly. It seems to present certain numbers in an incorrect form i.e. 12.:0 instead of 13 in a spinbox. Most of the time it also resets to 1 instead of advancing to such numbers. All efforts to locate the bug upstream pointed to Qt3. * Wolfgang Roemer [Wed, 07 Sep 2005 07:51:36 +0200]: Package: libqt3-mt Version: 3:3.3.4-7 Severity: important A simple conversion of a double value into a QString with the standard QString::arg(...) function fails sometimes:
Bug#326990: Printing Problem with latest unstable packages, Re: Bug#326990: libqt3-mt: Spinbox code is broken, Re: Bug#326833: kdelibs: KDE pseudoprinters do not work, Subject: Re: Bug#327021: libqt3-mt: QString::arg(double) produces sometimes garbage
* Adeodato Sim?? [EMAIL PROTECTED] [2005-09-07 16:26:01 +0200]: Hello all, fixed Qt packages will be soon uploaded to unstable. In the meantime, can you confirm that they really fix the problem? Please install and test from the following repository: http://people.debian.org/~adeodato/tmp/2005-09-07/fixed-qt Thanks. I confirm that #326990 is fixed in the new packages. Thank you! Alex * Rainer Kiehne [Wed, 07 Sep 2005 11:11:56 +0200]: HI My Problem is that printing out of konqueror (unstable) and other packages (kate) creates invalid postscript code i.e. printing into a postscript file results to: * Tibor Hajling [Tue, 06 Sep 2005 03:00:13 +0200]: Package: kdelibs Version: 4:3.4.2-3 Severity: normal When I try to print a testpage from KDE Control Panel to a pdf or ps pseudo printer KNotify gives me the following message: * Oleksandr Moskalenko [Tue, 06 Sep 2005 19:01:11 -0600]: Package: libqt3-mt Version: 3:3.3.4-7 Severity: normal I am packaging scribus. Recently a bug report came up upstream that scribus installed from a Debian package was corrupting produced pdfs and object properties on its canvas couldn't be set properly. It seems to present certain numbers in an incorrect form i.e. 12.:0 instead of 13 in a spinbox. Most of the time it also resets to 1 instead of advancing to such numbers. All efforts to locate the bug upstream pointed to Qt3. * Wolfgang Roemer [Wed, 07 Sep 2005 07:51:36 +0200]: Package: libqt3-mt Version: 3:3.3.4-7 Severity: important A simple conversion of a double value into a QString with the standard QString::arg(...) function fails sometimes: -- Adeodato Sim?? EM: asp16 [ykwim] alu.ua.es | PK: DA6AE621 Y sobre todo, tienes mucho de gilipollas. -- B.C.S. addressing P.G.i.Q in b8g -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED]
Bug#326990: Printing Problem with latest unstable packages, Re: Bug#326990: libqt3-mt: Spinbox code is broken, Re: Bug#326833: kdelibs: KDE pseudoprinters do not work, Subject: Re: Bug#327021: libqt3-mt: QString::arg(double) produces sometimes garbage
Wednesday 07 September 2005 16.26 dátummal Adeodato Simó ezt írta: Hello all, fixed Qt packages will be soon uploaded to unstable. In the meantime, can you confirm that they really fix the problem? Please install and test from the following repository: http://people.debian.org/~adeodato/tmp/2005-09-07/fixed-qt Thanks. * Tibor Hajling [Tue, 06 Sep 2005 03:00:13 +0200]: Package: kdelibs Version: 4:3.4.2-3 Severity: normal When I try to print a testpage from KDE Control Panel to a pdf or ps pseudo printer KNotify gives me the following message: The problem here seems to be solved. Thanks, Tibor