https://bugzilla.wikimedia.org/show_bug.cgi?id=62396

--- Comment #4 from Matthew Flaschen <mflasc...@wikimedia.org> ---
(In reply to Bartosz Dziewoński from comment #3)
> > Also, case-insensitive does not mean the same thing
> > in every language, and it's not the same as "just lower case them both then
> > compare them".
> 
> Well, I think it actually is, but it's the lowercasing part that's difficult
> :)

No, there are cases where lowercasing them both them comparing is probably not
the desired behavior.

For example:

mb_strtoupper( 'ς' ) === mb_strtoupper( 'Σ' ) === 'Σ'

Thus, most people would probably consider 'ς' and 'Σ' equal ignoring case.

However:

mb_strtolower( 'ς' ) ->  ς
mb_strtolower( 'Σ' ) -> σ

so a simple lower-case (even a multi-byte one), then a binary compare will not
work.

-- 
You are receiving this mail because:
You are the assignee for the bug.
You are on the CC list for the bug.
_______________________________________________
Wikibugs-l mailing list
Wikibugs-l@lists.wikimedia.org
https://lists.wikimedia.org/mailman/listinfo/wikibugs-l

Reply via email to