Last modified: 2014-10-16 13:26:52 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 T74129, the corresponding Phabricator task for complete and up-to-date bug report information.
Bug 72129 - UnicodeDecodeError in pwb.py creating logfile
UnicodeDecodeError in pwb.py creating logfile
Status: NEW
Product: Pywikibot
Classification: Unclassified
General (Other open bugs)
compat-(1.0)
All All
: Unprioritized normal
: ---
Assigned To: Pywikipedia bugs
:
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2014-10-16 12:18 UTC by John Mark Vandenberg
Modified: 2014-10-16 13:26 UTC (History)
1 user (show)

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


Attachments

Description John Mark Vandenberg 2014-10-16 12:18:11 UTC
While trying to reproduce bug 55211 (using pwb.py)

$ python pwb.py replace.py -page:"A Ki vagy, Doki? epizódjainak listája" x v -lang:hu
Traceback (most recent call last):
  File "pwb.py", line 142, in <module>
    logfile = logname % ''.join([os.path.basename(sys.argv[0])] + sys.argv[1:])
UnicodeDecodeError: 'ascii' codec can't decode byte 0xc3 in position 43: ordinal not in range(128)

Bug introduced in original commit (90f85d0)
Comment 1 Merlijn van Deen (test) 2014-10-16 12:30:18 UTC
Should use pywikibot.argvu et al instead, I'd think.
Comment 2 John Mark Vandenberg 2014-10-16 12:50:42 UTC
(In reply to Merlijn van Deen from comment #1)
> Should use pywikibot.argvu et al instead, I'd think.

argvu doesnt exist in compat.  is there any equivalent somewhere in that codebase?
Comment 3 Merlijn van Deen (test) 2014-10-16 13:26:52 UTC
Note that pwb.py in compat does not quite do what you expect it to do... (i.e. it's completely unrelated to pwb.py in core)

And no, I don't think there's something like that in compat; I added it to core when I added Windows unicode command line argument support.

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


Navigation
Links