author | eilers <eilers> | 2002-12-09 15:32:16 (UTC) |
---|---|---|
committer | eilers <eilers> | 2002-12-09 15:32:16 (UTC) |
commit | 9aa2442f6ea4e0d58fa7888995ebad04b3692049 (patch) (unidiff) | |
tree | f0a4340cf9178868e5c8d05df69a3d0d0fa12756 | |
parent | b0a600bf9dd32b908d79c2cf1f12b8088dc2590d (diff) | |
download | opie-9aa2442f6ea4e0d58fa7888995ebad04b3692049.zip opie-9aa2442f6ea4e0d58fa7888995ebad04b3692049.tar.gz opie-9aa2442f6ea4e0d58fa7888995ebad04b3692049.tar.bz2 |
Temorarely bug workaround ( #490 ) until trolltech publishing a bugfix !
-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) | |||
1026 | || | 1026 | || |
1027 | (c == ' ')) | 1027 | (c == ' ')) |
1028 | { | 1028 | { |
1029 | return 0; | 1029 | return 0; |
1030 | } | 1030 | } |
1031 | 1031 | ||
1032 | #warning "Bug-Workaround must be fixed !" | ||
1033 | // IF THIS FUNCTION RETURNES TRUE, THE DATA IS EXPORTED | ||
1034 | // AS QUOTED PRINTABLE. | ||
1035 | // BUT THE PARSER IS UNABLE TO IMPORT THIS, THEREFORE | ||
1036 | // I DECIDED TO DISABLE IT UNTIL TROLLTECH FIXES THIS BUG | ||
1037 | // SEE ALSO includesUnprintable(VObject *o) | ||
1038 | // (se) | ||
1039 | |||
1040 | return 0; | ||
1041 | |||
1042 | #if 0 | ||
1032 | static char trans[4]; | 1043 | static char trans[4]; |
1033 | trans[0] = '='; | 1044 | trans[0] = '='; |
1034 | trans[3] = '\0'; | 1045 | trans[3] = '\0'; |
1035 | int rem = c % 16; | 1046 | int rem = c % 16; |
1036 | int div = c / 16; | 1047 | int div = c / 16; |
1037 | 1048 | ||
@@ -1043,12 +1054,13 @@ static const char *replaceChar(unsigned char c) | |||
1043 | if (rem < 10) | 1054 | if (rem < 10) |
1044 | trans[2] = '0' + rem; | 1055 | trans[2] = '0' + rem; |
1045 | else | 1056 | else |
1046 | trans[2] = 'A' + (rem - 10); | 1057 | trans[2] = 'A' + (rem - 10); |
1047 | 1058 | ||
1048 | return trans; | 1059 | return trans; |
1060 | #endif | ||
1049 | } | 1061 | } |
1050 | 1062 | ||
1051 | static void writeQPString(OFile *fp, const char *s) | 1063 | static void writeQPString(OFile *fp, const char *s) |
1052 | { | 1064 | { |
1053 | /* | 1065 | /* |
1054 | only A-Z, 0-9 and | 1066 | only A-Z, 0-9 and |
@@ -1076,24 +1088,38 @@ static void writeQPString(OFile *fp, const char *s) | |||
1076 | p++; | 1088 | p++; |
1077 | } | 1089 | } |
1078 | } | 1090 | } |
1079 | 1091 | ||
1080 | static bool includesUnprintable(VObject *o) | 1092 | static bool includesUnprintable(VObject *o) |
1081 | { | 1093 | { |
1094 | |||
1095 | #if 0 | ||
1096 | |||
1097 | // IF THIS FUNCTION RETURNES TRUE, THE DATA IS EXPORTED | ||
1098 | // AS QUOTED PRINTABLE. | ||
1099 | // BUT THE PARSER IS UNABLE TO IMPORT THIS, THEREFORE | ||
1100 | // I DECIDED TO DISABLE IT UNTIL TROLLTECH FIXES THIS BUG | ||
1101 | // SEE ALSO *replaceChar(unsigned char c) | ||
1102 | // (se) | ||
1103 | |||
1082 | if (o) { | 1104 | if (o) { |
1083 | if (VALUE_TYPE(o) == VCVT_STRINGZ) { | 1105 | if (VALUE_TYPE(o) == VCVT_STRINGZ) { |
1084 | const char *p = STRINGZ_VALUE_OF(o); | 1106 | const char *p = STRINGZ_VALUE_OF(o); |
1085 | if (p) { | 1107 | if (p) { |
1086 | while (*p) { | 1108 | while (*p) { |
1087 | if (replaceChar(*p)) | 1109 | if (replaceChar(*p)) |
1088 | return TRUE; | 1110 | return TRUE; |
1089 | p++; | 1111 | p++; |
1090 | } | 1112 | } |
1091 | } | 1113 | } |
1092 | } | 1114 | } |
1093 | } | 1115 | } |
1116 | |||
1117 | #endif | ||
1118 | #warning "Bug-Workaround must be fixed !" | ||
1119 | |||
1094 | return FALSE; | 1120 | return FALSE; |
1095 | } | 1121 | } |
1096 | 1122 | ||
1097 | static void writeVObject_(OFile *fp, VObject *o); | 1123 | static void writeVObject_(OFile *fp, VObject *o); |
1098 | 1124 | ||
1099 | static void writeValue(OFile *fp, VObject *o, unsigned long size) | 1125 | static void writeValue(OFile *fp, VObject *o, unsigned long size) |