Re: gettext change the behaviour of double scalar

From: Date: Thu, 07 Nov 2002 13:07:19 +0000
Subject: Re: gettext change the behaviour of double scalar
References: 1  Groups: php.dev 
Request: Send a blank email to php-dev+get-90604@lists.php.net to get a copy of this message
Zitat von Jean-Pierre Arneodo <jparneodo@yahoo.fr>: > This is verified with 4.1.2 and 4.2.3 > but not with 4.3.Opre2 > [myFile.php] > $lang='fr_FR'; > putenv("LANG=$lang"); > setlocale(LC_ALL,$lang); > bindtextdomain($domain,"/MyDir/i18n"); > textdomain($domain); > > $a=10.12345; > echo $a; // print 10.12345 > > require('myOtherFile.php'); > > [myOtherFile.php] > $b=10.12345; > echo $b; // print 10 > > So, printing a double in a required file > after gettext configuration change the behaviour > of a double scalar. This probably has nothing to do with gettext but with the setlocale() call. And iirc this has been fixed in the meantime and thus doesn't happen anymore in 4.3.0. Jan. -- http://www.horde.org - The Horde Project http://www.ammma.de - discover your knowledge http://www.tip4all.de - Deine private Tippgemeinschaft

« previous php.dev (#90604) next »