[dev] Re: [cvs] commit: imp/lib Headers.php
Jan Schneider
jan at horde.org
Fri Feb 7 23:22:42 PST 2003
Zitat von Michael M Slusarz <slusarz at bigworm.colorado.edu>:
> Quoting Jan Schneider <jan at horde.org>:
>
> | Zitat von Michael M Slusarz <slusarz at bigworm.colorado.edu>:
> |
> | > slusarz 2003/02/06 19:35:31 PST
> | >
> | > Modified files:
> | > lib Headers.php
> | > Log:
> | > Change some array_key_exists() calls.
> | > Don't need String::lower() here - these are internal IMAP flags.
> |
> | And that's the reason why we _need_ String::lower() here. Opposed to
> | functions like String::substr() that are necessary for multibyte safe
> | operations, functions like String::lower() are necessary for locale
> | _in_dependent operations.
> |
> | Turkish for example doesn't know a lower i, thus strtolower() on a
> string
> | that contains an "i" would return the expected result.
>
> I guess I still don't understand. All calls to IMP_Headers::getFlag()
> are
> hardcoded into the source code (and will always be). So are you saying
> that a call like IMP_Headers::getFlag('hi') will behave differently on a
> computer in Turkey than on a computer in England? (I apologize for being
> so anglo-centric.... :) ).
Correct. Actually, to give a real example in Turkish (works only in an UTF-8
capable mail client, like IMP):
strtolower('HI') == 'hı' != 'hi'
Jan.
--
http://www.horde.org - The Horde Project
http://www.ammma.de - discover your knowledge
http://www.tip4all.de - Deine private Tippgemeinschaft
More information about the dev
mailing list