[OGo-Bugs][Bug 1907] folder creation is not portable
bugs@opengroupware.org
bugs@opengroupware.org
Wed, 5 Sep 2007 16:39:03 +0200 (CEST)
Please do not reply directly to this email. All additional
comments should be made in the comments box of this bug
report.
http://bugzilla.opengroupware.org/bugzilla/show_bug.cgi?id=1907
------- Additional Comments From wsourdeau@inverse.ca 2007-09-05 16:39 -------
The following method should be replaced in GCSFolderManager.m after applying the
initial patch:
- (NSString *)baseTableNameWithUID:(NSString *)_uid {
NSDate *now;
unichar currentChar;
unsigned int count, max, done;
NSMutableString *newUID;
newUID = [NSMutableString string];
now = [NSDate date];
max = [_uid length];
done = 0;
count = 0;
while (done < 8 && count < max)
{
currentChar = [_uid characterAtIndex: count];
if ([asciiAlphaNumericCS characterIsMember: currentChar])
{
[newUID appendFormat: @"%c", currentChar];
done++;
}
count++;
}
return [NSString stringWithFormat: @"%@%u",
newUID, [now timeIntervalSince1970]];
}
------- You are receiving this mail because: -------
You are on the CC list for the bug, or are watching someone who is.