mw
mw copied to clipboard
little bug in MergeCommand
There are two calls which seems wrong in my last tests:
pull_command.args = pagename.encode('utf-8') commit_command.args = pagename.encode('utf-8')
I am getting errors when trying to merge file whose filename contains accentued characters. UnicodeDecodeError: 'ascii' codec can't decode byte 0xc3 in position 21: ordinal not in range(128)
I am assuming the encode("utf-8") which should not be here since it comes from the filesystem and not from a request.
I don't plan on using this command, so it won't really affect me.