-rw-r--r-- | library/backend/vobject.cpp | 26 |
1 files changed, 26 insertions, 0 deletions
diff --git a/library/backend/vobject.cpp b/library/backend/vobject.cpp index 2f22c20..2c5b577 100644 --- a/library/backend/vobject.cpp +++ b/library/backend/vobject.cpp @@ -1026,12 +1026,23 @@ static const char *replaceChar(unsigned char c) || (c == ' ')) { return 0; } +#warning "Bug-Workaround must be fixed !" + // IF THIS FUNCTION RETURNES TRUE, THE DATA IS EXPORTED + // AS QUOTED PRINTABLE. + // BUT THE PARSER IS UNABLE TO IMPORT THIS, THEREFORE + // I DECIDED TO DISABLE IT UNTIL TROLLTECH FIXES THIS BUG + // SEE ALSO includesUnprintable(VObject *o) + // (se) + + return 0; + +#if 0 static char trans[4]; trans[0] = '='; trans[3] = '\0'; int rem = c % 16; int div = c / 16; @@ -1043,12 +1054,13 @@ static const char *replaceChar(unsigned char c) if (rem < 10) trans[2] = '0' + rem; else trans[2] = 'A' + (rem - 10); return trans; +#endif } static void writeQPString(OFile *fp, const char *s) { /* only A-Z, 0-9 and @@ -1076,24 +1088,38 @@ static void writeQPString(OFile *fp, const char *s) p++; } } static bool includesUnprintable(VObject *o) { + +#if 0 + + // IF THIS FUNCTION RETURNES TRUE, THE DATA IS EXPORTED + // AS QUOTED PRINTABLE. + // BUT THE PARSER IS UNABLE TO IMPORT THIS, THEREFORE + // I DECIDED TO DISABLE IT UNTIL TROLLTECH FIXES THIS BUG + // SEE ALSO *replaceChar(unsigned char c) + // (se) + if (o) { if (VALUE_TYPE(o) == VCVT_STRINGZ) { const char *p = STRINGZ_VALUE_OF(o); if (p) { while (*p) { if (replaceChar(*p)) return TRUE; p++; } } } } + +#endif +#warning "Bug-Workaround must be fixed !" + return FALSE; } static void writeVObject_(OFile *fp, VObject *o); static void writeValue(OFile *fp, VObject *o, unsigned long size) |