[evolution-mapi/gnome-3-2] Bug #664626 - Missing KOI-8R codepage support (patch by Vladislav)



commit a9ff123c4730da071398c6a76dbebacdb9d1b50a
Author: Milan Crha <mcrha redhat com>
Date:   Fri Dec 16 11:26:07 2011 +0100

    Bug #664626 - Missing KOI-8R codepage support (patch by Vladislav)

 src/libexchangemapi/exchange-mapi-mail-utils.c |    2 ++
 1 files changed, 2 insertions(+), 0 deletions(-)
---
diff --git a/src/libexchangemapi/exchange-mapi-mail-utils.c b/src/libexchangemapi/exchange-mapi-mail-utils.c
index 1697af3..2533e98 100644
--- a/src/libexchangemapi/exchange-mapi-mail-utils.c
+++ b/src/libexchangemapi/exchange-mapi-mail-utils.c
@@ -531,6 +531,8 @@ mapi_mime_msg_body (MailItem *item, const ExchangeMAPIStream *body)
 		if (item->header.cpid && (body->proptag & 0xFFFF) != PT_UNICODE) {
 			if (item->header.cpid == 20127)
 				buff = g_strdup_printf ("%s; charset=\"us-ascii\"", type);
+			else if (item->header.cpid == 20866)
+				buff = g_strdup_printf ("%s; charset=\"koi8-r\"", type);
 			else if (item->header.cpid >= 28591 && item->header.cpid <= 28599)
 				buff = g_strdup_printf ("%s; charset=\"ISO-8859-%d\"", type, item->header.cpid % 10);
 			else if (item->header.cpid == 28603)



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]