From abdc5e8518a48f7fd4b7d7b4c77b2a96d5dd7f62 Mon Sep 17 00:00:00 2001 From: Wolfgang Sourdeau Date: Fri, 22 Aug 2008 20:04:10 +0000 Subject: [PATCH] Monotone-Parent: a0baf3974def7568b78583eee52ce7c060344b6b Monotone-Revision: cb3f479134d1d5c2e5302fa2bc5e9546144fd5df Monotone-Author: wsourdeau@inverse.ca Monotone-Date: 2008-08-22T20:04:10 Monotone-Branch: ca.inverse.sogo --- SOPE/sope-patchset-r1625.diff | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) diff --git a/SOPE/sope-patchset-r1625.diff b/SOPE/sope-patchset-r1625.diff index ba063b64c..86759cd4e 100644 --- a/SOPE/sope-patchset-r1625.diff +++ b/SOPE/sope-patchset-r1625.diff @@ -1929,6 +1929,24 @@ Index: sope-core/NGExtensions/FdExt.subproj/NSString+Encoding.m } static char *iconv_wrapper(id self, char *_src, unsigned _srcLen, +Index: sope-core/NGExtensions/NGQuotedPrintableCoding.m +=================================================================== +--- sope-core/NGExtensions/NGQuotedPrintableCoding.m (révision 1625) ++++ sope-core/NGExtensions/NGQuotedPrintableCoding.m (copie de travail) +@@ -278,7 +278,12 @@ + + for (cnt = 0; (cnt < _srcLen) && (destCnt < _destLen); cnt++) { + char c = _src[cnt]; +- if ((c == 9) || ++ if (c == 95) { // we encode the _, otherwise we'll always decode it as a space! ++ _dest[destCnt++] = '='; ++ _dest[destCnt++] = '5'; ++ _dest[destCnt++] = 'F'; ++ } ++ else if ((c == 9) || + (c == 10) || + (c == 13) || + ((c > 31) && (c < 61)) || Index: sope-core/NGExtensions/EOExt.subproj/EOGlobalID+Ext.m =================================================================== --- sope-core/NGExtensions/EOExt.subproj/EOGlobalID+Ext.m (révision 1625)