XZise added a subscriber: XZise.
XZise added a comment.
https://phabricator.wikimedia.org/T95671 does probably not resolve the issue. I guess arg
is `bytes` and not `unicode`:
>> 'ä'.startswith('ä')
True
>> 'ä'.startswith(u'ä')
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
UnicodeDecodeError: 'ascii' codec can't decode byte 0xc3 in position 0:
ordinal not in range(128)
As “-dir” is now implicitly a unicode the second case happens and when arg is now bytes it
must convert that into unicode to check if it startswith that letter. I guess
`handle_args` needs to do some work to return `unicode`s or so. Problem is if the script
expects that handle_args returns a list of `bytes`:
>> u'ä'.startswith('ä')
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
UnicodeDecodeError: 'ascii' codec can't decode byte 0xc3 in position 0:
ordinal not in range(128)
TASK DETAIL
https://phabricator.wikimedia.org/T95803
REPLY HANDLER ACTIONS
Reply to comment or attach files, or !close, !claim, !unsubscribe or !assign
<username>.
EMAIL PREFERENCES
https://phabricator.wikimedia.org/settings/panel/emailpreferences/
To: XZise
Cc: XZise, jayvdb, Wesalius, Aklapper, pywikipedia-bugs