[i18n] imap_sort localization

Chuck Hagenbuch chuck at horde.org
Wed May 4 06:14:39 PDT 2005


Quoting persian-horde at metanetworking.com:

> As we've seen in the imp head code, the imp uses the imap_sort function to
> sort messages, (by Subject, Sender, etc). Although this function has a
> charset arguement, but it does not support localization for other locales
> alphabets (such as fa_IR) and does not sort correctly.
>
> but the usort function works well for sorting most of the non-english
> locales as well as fa_IR:
>
> setlocale(LC_ALL,"fa_IR");
> usort($arraytobesorted, 'strcoll');
>
> and this work well,
>
> Our question is that is it acceptable(or possible) to feed the output of
> imap_sort to usort for correct sorting?

No, this won't work.

-chuck

-- 
"But she goes not abroad in search of monsters to destroy." - John 
Quincy Adams


More information about the i18n mailing list