Subj : string locale comparison To : netscape.public.mozilla.jseng From : Pavel Hlavnicka Date : Tue Jun 03 2003 03:47 pm Hi all, I'm trying to compare international strings in my script (in chrome application). I'm not able to force the JS engine to compare strings on the locale basis (either the '<' operator or String.localeCompare method) I checked the source where the String.localeCompare method is defined - the locale callbacks are used to do such comparison, but it seems, that nobody sets them in the Mozilla's scope. Is it really like this? Is there something wrong with my code, or is it a sad fact, that there is no way to compare strings with locale rules? Next, in the JS reference you can read (on comparison operators) __begin__ The operands can be numerical or string values. Strings are compared based on standard lexicographical ordering, using Unicode values. __end__ It is near this point What, the hell, this sentence means? JS_CompareString seems be working with bytes in pretty straightforward way (and it is used if no locale callbacks are set). Any help is really appreciated in advance Have a nice day, all Pavel -- Pavel Hlavnicka Ginger Alliance www.gingerall.com .