Last modified: 2014-10-16 13:26:52 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)
Should use pywikibot.argvu et al instead, I'd think.
(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?
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.