Show More
@@ -336,7 +336,7 b' def _encode(ui, s, charsets):' | |||
|
336 | 336 | ui.warn(_(b'ignoring invalid sendcharset: %s\n') % ocs) |
|
337 | 337 | else: |
|
338 | 338 | # Everything failed, ascii-armor what we've got and send it. |
|
339 | return s.encode('ascii', 'backslashreplace') | |
|
339 | return s.encode('ascii', 'backslashreplace'), b'us-ascii' | |
|
340 | 340 | # We have a bytes of unknown encoding. We'll try and guess a valid |
|
341 | 341 | # encoding, falling back to pretending we had ascii even though we |
|
342 | 342 | # know that's wrong. |
General Comments 0
You need to be logged in to leave comments.
Login now