At 14:07 11/7/2002 +0100, Jan Schneider wrote:

Zitat von Jean-Pierre Arneodo <[EMAIL PROTECTED]>:

> 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.
Actually - the fr_FR locale exposes some problems, with other functions as well,
for some RedHat systems. See the various test failures on php-qa for
htmlentities02.phpt.


Met vriendelijke groeten / With kind regards,

Webmaster IDG.nl
Melvyn Sopacua

<@Logan> I spent a minute looking at my own code by accident.
<@Logan> I was thinking "What the hell is this guy doing?"


--
PHP Development Mailing List <http://www.php.net/>
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to