Fix bug in prefixing scheme
authorAryeh Gregor <simetrical@users.mediawiki.org>
Mon, 26 Jul 2010 22:04:19 +0000 (22:04 +0000)
committerAryeh Gregor <simetrical@users.mediawiki.org>
Mon, 26 Jul 2010 22:04:19 +0000 (22:04 +0000)
commit2ffa5e4876a731fb7fd85cbfac430df31057761c
tree45a2c5acc67d09a230db322916ec0118f9753415
parent98a7f4d756b390e2c873612a4079542799e51b59
Fix bug in prefixing scheme

As Bawolff pointed out at [[mw:User talk:Simetrical/Collation]], the
prefixing scheme I was using meant that the page "Z" with sort key of
"F" would sort after a page named "A" with a sort key of "FF", since the
first one's raw sort key would compute to "FZ", and the second's would
compute to "FFA".  I've fixed this by separating the prefix from the
unprefixed part by a null byte (cl_sortkey is eventually going to be
totally binary anyway, may as well start now).
includes/CategoryPage.php
includes/LinksUpdate.php
includes/Title.php
languages/Language.php
maintenance/updateCollation.php