[Fedora-trans-ar] Arabic issue #32: The conversion of a localized 'const QString' to 'double' returns 0

Munzir Taha munzirtaha at newhorizons.com.sa
Fri Mar 25 22:04:02 UTC 2005


Hi,

Qt 4.0.0-b2-snapshot-20050315
2.6.10-1mdk i686 AMD Athlon(tm) 64 Processor 3200+ GNU/Linux


With
	QLocale ar(QLocale::Arabic);
	double d = ar.toDouble( "١٢٣" );
I expected d to return the double represented by the localized string. The 
case is d is always 0 which indicates conversion failure. Am doing something 
silly here?

-- 
Munzir Taha  PGP Key available
gpg --recv-keys --keyserver www.mandrakesecure.net F0671821

Telecommunications and Electronics Engineer
Mandrake Club Member
Maintainer of the OpenBugs project page at
http://www.arabic-fedora.org/munzir/OpenBugs.html
Maintainer of Fedora Arabic Translation Project
https://listman.redhat.com/mailman/listinfo/fedora-trans-ar
CIW Designer, ICDL, MOUS, Linux+, LPI 101
New Horizons CLC, Riyadh, SA




More information about the Fedora-trans-ar mailing list