Last modified: 2014-09-21 10:47:38 UTC

Wikimedia Bugzilla is closed!

Wikimedia migrated from Bugzilla to Phabricator. Bug reports are handled in Wikimedia Phabricator.
This static website is read-only and for historical purposes. It is not possible to log in and except for displaying bug reports and their history, links might be broken. See T57241, the corresponding Phabricator task for complete and up-to-date bug report information.
Bug 55241 - Problem with chinese character
Problem with chinese character
Status: NEW
Product: Pywikibot
Classification: Unclassified
interwiki.py (Other open bugs)
compat-(1.0)
All All
: Low minor
: ---
Assigned To: John Mark Vandenberg
: testme
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2013-10-05 04:49 UTC by Kunal Mehta (Legoktm)
Modified: 2014-09-21 10:47 UTC (History)
7 users (show)

See Also:
Web browser: ---
Mobile Platform: ---
Assignee Huggle Beta Tester: ---


Attachments

Description Kunal Mehta (Legoktm) 2013-10-05 04:49:29 UTC
Originally from: http://sourceforge.net/p/pywikipediabot/bugs/1327/
Reported by: jandudik
Created on: 2011-08-03 11:31:41
Subject: Problem with chinese character
Original description:
Bot removes interwiki, which have incorrect character at the end.
But mediawiki translates this character correctly

http://pl.wikipedia.org/w/index.php?title=Wios%C5%82onos\_ameryka%C5%84ski&action=historysubmit&diff=27500418&oldid=27491213
Comment 1 Amir Ladsgroup 2014-07-24 09:59:19 UTC
Is it still valid? I didn't try to reproduce it
Comment 2 JAn Dudík 2014-07-24 11:46:38 UTC
Probably obsolete with Wikidata.
Comment 3 John Mark Vandenberg 2014-09-11 08:16:51 UTC
The problem bot edit is here:
https://pl.wikipedia.org/w/index.php?title=Wios%C5%82onos_ameryka%C5%84ski&diff=prev&oldid=27482496

And the bot removed '[[zh:匙吻鲟]]' from '[[pl:Wiosłonos amerykański]]' with an edit summary of : (r2.5.2) (robot usuwa zh:匙吻鲟)

It appears from the interwiki code that 'r2.5.2' is the python version.

Was this 2011 edit done with compat or core?
Comment 4 zhuyifei1999 2014-09-11 16:03:13 UTC
Haven't read through the code yet, but the following seems to suggest that interwiki.py is likely to have the bug:

>>> import pywikibot
>>> pywikibot.Page(pywikibot.Site("zh", "wikipedia"), u"匙吻鲟").exists()
False
>>> pywikibot.Page(pywikibot.Site("zh", "wikipedia"), u"匙吻鱘").exists()
True
Comment 5 xqt 2014-09-11 19:03:27 UTC
> Was this 2011 edit done with compat or core?

It is compat for that edit and the reason is that mw is able to redirect different spelling style whereas compat framework is not.
Comment 6 zhuyifei1999 2014-09-12 11:45:40 UTC
Would it be possible for Site.loadpageinfo()  to make use of "converttitles" api parameter?
Comment 7 John Mark Vandenberg 2014-09-12 11:49:19 UTC
(In reply to zhuyifei1999 from comment #6)
> Would it be possible for Site.loadpageinfo()  to make use of "converttitles"
> api parameter?

That looks like a good approach.  How will you determine if the wiki's content language supports variant conversion?
Comment 8 zhuyifei1999 2014-09-14 02:51:33 UTC
(In reply to John Mark Vandenberg from comment #7)
> (In reply to zhuyifei1999 from comment #6)
> > Would it be possible for Site.loadpageinfo()  to make use of "converttitles"
> > api parameter?
> 
> That looks like a good approach.  How will you determine if the wiki's
> content language supports variant conversion?

@liangent: ?
Comment 9 Liangent 2014-09-21 10:47:38 UTC
I guess always adding that does no harm?

Note You need to log in before you can comment on or make changes to this bug.


Navigation
Links