Skip to content
Snippets Groups Projects
Commit 3d6db671 authored by rswindell's avatar rswindell
Browse files

Translate UTF-8 "horizontal ellipsis" to 3 ASCII '.'s when normalizing

MIME-encoded headers.
parent 11d3f59f
No related branches found
No related tags found
No related merge requests found
......@@ -2414,6 +2414,13 @@ static uchar* normalize_utf8(uchar* str)
continue;
}
if(*src == 0xe2) {
// UNICODE HORIZONTAL ELLIPSIS -> ASCII periods (3)
if(*(src + 1) == 0x80 && *(src + 2) == 0xa6) {
src += 2;
for(int i = 0; i < 3; i++)
*dest++ = '.';
continue;
}
// UNICODE EN SPACE -> ASCII space
// UNICODE EM SPACE -> ASCII space
if(*(src + 1) == 0x80 && (*(src + 2) == 0x82 || *(src + 2) == 0x83)) {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment