https://bugzilla.wikimedia.org/show_bug.cgi?id=55311
--- Comment #1 from Kunal Mehta (Legoktm) legoktm.wikipedia@gmail.com --- Okay, understood.
Actually, -weblink "case" does not change the replacements behavior. -weblink is, at all times, case insensitive: Here, if [[Foo]] contains 'Http://www.example.com', it will be matched by mediawiki as a *.COM address, and will give it to you on Special:LinkSearch.
It's not -weblink's case which matters here, it is the case (in)sensivity of the replacements used by replace.py
To illustrate what I'm saying: with http://fr.wikipedia.org/wiki/Utilisateur:NicDumZ/casetest containing "http://Case-Linky.COM" : python replace.py -weblink:"Case-Linky.COM" "case-linky.com" "case-linky.rs" treats the test page but don't change anything python replace.py -weblink:"case-linky.com" "case-linky.com" "case-linky.rs" treats the test page but don't change anything either
The page is matched as containing a case-linky.com link, because mediawiki treats links case-insensitively. But when PYWP tries to match replacements, it's case sensitive by default ;)
Add -nocase for case insensivity : python replace.py -weblink:"case-linky.com" -nocase "case-linky.com" "case-linky.rs" DO the changes =)
I'll close this bug as INVALID, re-open it if I misunderstood the issue =)
(But I think that you wanted the .yu top level domain fixes to be case-insensitive, right ? Well this was not possible, even with a -nocase parameter added, because -nocase is ignored when -fix: is used. But since http://svn.wikimedia.org/viewvc/pywikipedia?view=rev&revision=6374 the yu-tld fixes are case-insensitive. =) )