[imp] Different attachments with different languages

Jan Schneider janmailing@gmx.de
Tue, 31 Jul 2001 14:27:56 +0000


Zitat von Chuck Hagenbuch <chuck@horde.org>:

> Quoting Jan Schneider <janmailing@gmx.de>:
> 
> > If you got an attachment with, let's say, a size of 0.5 this is
> interpretated 
> > different if you have different locale settings. In German locale you have
> to 
> > write 0,5 instead of 0.5 thus the greater-than-test fails.
> 
> This makes sense, except that shouldn't testing against 0 be the same for all
> 
> locales?

Of course, but on systems that use a comma as the decimal point php's 
typecasting makes a 0 out of 0,5. The size returned from the mime library is a 
string not a floating point number.

Jan.
 
> -chuck
> 
> --
> Charles Hagenbuch, <chuck@horde.org>
> Some fallen angels have their good reasons.
> 
> -- 
> IMP mailing list: http://horde.org/imp/
> Archive: http://marc.theaimsgroup.com/?l=imp&r=1&w=2
> Frequently Asked Questions: http://horde.org/faq/
> To unsubscribe, mail: imp-unsubscribe@lists.horde.org
> 
> 


:::::::::::::::::::::::::::::::::::::::: 
AMMMa AG - discover your knowledge
:::::::::::::::::::::::::::
Detmolder Str. 25-33 :: D-33604 Bielefeld
fon +49.521.96878-0 :: fax  +49.521.96878-20
http://www.ammma.de
::::::::::::::::::::::::::::::::::::::::::::::