diff options
author | Siddhesh Poyarekar <siddhesh@redhat.com> | 2014-07-14 10:21:32 +0800 |
---|---|---|
committer | Jeremy Kerr <jk@ozlabs.org> | 2014-07-24 17:30:45 +0800 |
commit | 880fc52d2d4ccdcbf4a7b76f1b4ba6b9e7482dff (patch) | |
tree | 993827678013aab90cccf4b032e956181dcef5aa /apps/manage.py | |
parent | f49c72da5545f2da49dd83d9ec54fe232cf60360 (diff) | |
download | patchwork-880fc52d2d4ccdcbf4a7b76f1b4ba6b9e7482dff.tar.bz2 patchwork-880fc52d2d4ccdcbf4a7b76f1b4ba6b9e7482dff.tar.xz |
parsemail: Fallback to common charsets when charset is None or x-unknown
We recently encountered a case in our glibc patchwork instance on
sourceware, where a patch was dropped because it had x-unknown
charset.
This change adds a fallback on a set of encodings (instead of just
utf-8) when the charset is not mentioned or if it is set as x-unknown.
Minor changes and testcase by Jeremy Kerr <jk@ozlabs.org>
Signed-off-by: Siddhesh Poyarekar <siddhesh@redhat.com>
Signed-off-by: Jeremy Kerr <jk@ozlabs.org>
Diffstat (limited to 'apps/manage.py')
0 files changed, 0 insertions, 0 deletions