https://bugzilla.wikimedia.org/show_bug.cgi?id=72129
Bug ID: 72129 Summary: UnicodeDecodeError in pwb.py creating logfile Product: Pywikibot Version: compat (1.0) Hardware: All OS: All Status: NEW Severity: normal Priority: Unprioritized Component: General Assignee: Pywikipedia-bugs@lists.wikimedia.org Reporter: jayvdb@gmail.com Web browser: --- Mobile Platform: ---
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)
https://bugzilla.wikimedia.org/show_bug.cgi?id=72129
Merlijn van Deen valhallasw@arctus.nl changed:
What |Removed |Added ---------------------------------------------------------------------------- CC| |valhallasw@arctus.nl
--- Comment #1 from Merlijn van Deen valhallasw@arctus.nl --- Should use pywikibot.argvu et al instead, I'd think.
https://bugzilla.wikimedia.org/show_bug.cgi?id=72129
--- Comment #2 from John Mark Vandenberg jayvdb@gmail.com --- (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?
https://bugzilla.wikimedia.org/show_bug.cgi?id=72129
--- Comment #3 from Merlijn van Deen valhallasw@arctus.nl --- 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.
pywikipedia-bugs@lists.wikimedia.org