Monotone-Parent: a0baf3974def7568b78583eee52ce7c060344b6b

Monotone-Revision: cb3f479134d1d5c2e5302fa2bc5e9546144fd5df

Monotone-Author: wsourdeau@inverse.ca
Monotone-Date: 2008-08-22T20:04:10
Monotone-Branch: ca.inverse.sogo
This commit is contained in:
Wolfgang Sourdeau
2008-08-22 20:04:10 +00:00
parent bd51263b3e
commit abdc5e8518
+18
View File
@@ -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)