Repository navigation
Commit 2b6f035
committed
gh-160302: Don't encode the payload twice in Message.set_payload()
When the input and output charsets differ, as for euc-jp and shift_jis,
which are sent as iso-2022-jp, set_payload() encoded the text and
set_charset() then encoded the result again. That only worked because
the iso2022_jp encoder let ESC through. Leave the conversion to
set_charset().1 parent e7e54fb commit 2b6f035
1 file changed
Lines changed: 5 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
352 | 352 | | |
353 | 353 | | |
354 | 354 | | |
355 | | - | |
| 355 | + | |
| 356 | + | |
| 357 | + | |
| 358 | + | |
| 359 | + | |
356 | 360 | | |
357 | 361 | | |
358 | 362 | | |
| |||
0 commit comments