valhallasw added a subscriber: valhallasw. valhallasw added a comment.
After debugging with xzise, we figured out it was a combination of issues.
1. When piping, sys.stdout.encoding is set to None (on Python 2.7) 2. When sys.stdout.encoding is set to None, config2.py falls back to 'iso-8859-1' (!) 3. sys.argv is decoded using sys.stdout.encoding
Thus the category '1. FC Nürnberg' is decoded to u'1. FC Nürnberg', which obviously doesn't exist, and then no pages are listed.
TASK DETAIL https://phabricator.wikimedia.org/T93474
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: valhallasw Cc: valhallasw, XZise, Ciencia_Al_Poder, Aklapper, jayvdb, pywikipedia-bugs