From dcbaa59230d9675c440339dca9d31dbeaad5c4d4 Mon Sep 17 00:00:00 2001 From: znek Date: Sat, 16 Oct 2004 18:41:39 +0000 Subject: [PATCH] bugfix git-svn-id: http://svn.opengroupware.org/SOPE/trunk@266 e4a50df8-12e2-0310-a44c-efbce7f8a7e3 --- sope-ical/versitSaxDriver/ChangeLog | 6 ++++++ sope-ical/versitSaxDriver/README | 2 ++ sope-ical/versitSaxDriver/VSStringFormatter.m | 2 +- sope-ical/versitSaxDriver/Version | 2 +- 4 files changed, 10 insertions(+), 2 deletions(-) diff --git a/sope-ical/versitSaxDriver/ChangeLog b/sope-ical/versitSaxDriver/ChangeLog index 6d51a381..a0657680 100644 --- a/sope-ical/versitSaxDriver/ChangeLog +++ b/sope-ical/versitSaxDriver/ChangeLog @@ -1,5 +1,11 @@ 2004-10-16 Marcus Mueller + * v1.0.4 + + * VSStringFormatter.m: properly unescape '\N' + + * README: updated, need to fix _parseLine: + * v1.0.3 * VSStringFormatter.[hm]: new singleton to perform unescaping on diff --git a/sope-ical/versitSaxDriver/README b/sope-ical/versitSaxDriver/README index b7712cc0..474d5672 100644 --- a/sope-ical/versitSaxDriver/README +++ b/sope-ical/versitSaxDriver/README @@ -23,6 +23,8 @@ dependency to the OGo project and thus a welcome candidate for replacement. ToDo ==== +- REWRITE _parseLine:! It doesn't properly deal with escaped characters + as it SHOULD, thus properly corrupting content - improve error handling (SaxExceptions !) - make the driver fully xCal compliant diff --git a/sope-ical/versitSaxDriver/VSStringFormatter.m b/sope-ical/versitSaxDriver/VSStringFormatter.m index ae2de6ec..f2035e76 100644 --- a/sope-ical/versitSaxDriver/VSStringFormatter.m +++ b/sope-ical/versitSaxDriver/VSStringFormatter.m @@ -72,7 +72,7 @@ static NSCharacterSet *escSet = nil; /* test edge case */ if(NSMaxRange(escRange) < length) { unichar c = [_s characterAtIndex:escRange.location + 1]; - if(c == 'n') { + if(c == 'n' || c == 'N') { [safeString appendString:@"\n"]; escRange.length += 1; /* skip the 'n' */ } diff --git a/sope-ical/versitSaxDriver/Version b/sope-ical/versitSaxDriver/Version index 99d4ed27..14e384e2 100644 --- a/sope-ical/versitSaxDriver/Version +++ b/sope-ical/versitSaxDriver/Version @@ -2,4 +2,4 @@ MAJOR_VERSION=1 MINOR_VERSION=0 -SUBMINOR_VERSION:=3 +SUBMINOR_VERSION:=4 -- 2.39.5