+2004-10-02 Helge Hess <helge.hess@opengroupware.org>
+
+ * NGQuotedPrintableCoding.m: minor code cleanups (v4.3.119)
+
+2004-10-01 Helge Hess <helge.hess@opengroupware.org>
+
+ * FdExt.subproj/NSException+misc.m: check whether nil is being passed
+ in as the exception format (v4.3.118)
+
2004-09-27 Helge Hess <helge.hess@opengroupware.org>
* NGBundleManager.m: removed a warning on MacOSX (v4.3.117)
Free Software Foundation, 59 Temple Place - Suite 330, Boston, MA
02111-1307, USA.
*/
-// $Id$
#include "NSException+misc.h"
#include "common.h"
NSString *tmp = nil;
va_list ap;
+ if (_format == nil)
+ NSLog(@"ERROR(%s): missing format!", __PRETTY_FUNCTION__);
+
va_start(ap, _format);
tmp = [[NSString allocWithZone:[self zone]]
- initWithFormat:_format arguments:ap];
+ initWithFormat:_format ? _format : @"Exception"
+ arguments:ap];
va_end(ap);
self = [self initWithReason:tmp userInfo:nil];
return self;
}
+/* NSCopying */
+
- (id)copyWithZone:(NSZone *)_zone {
// TODO: should make a real copy?
return [self retain];
/*
- Copyright (C) 2000-2003 SKYRIX Software AG
+ Copyright (C) 2000-2004 SKYRIX Software AG
- This file is part of OGo
+ This file is part of OpenGroupware.org.
OGo is free software; you can redistribute it and/or modify it under
the terms of the GNU Lesser General Public License as published by the
Free Software Foundation, 59 Temple Place - Suite 330, Boston, MA
02111-1307, USA.
*/
-// $Id$
#ifndef __NGExtensions_NGQuotedPrintableCoding_H__
#define __NGExtensions_NGQuotedPrintableCoding_H__
/*
Quoted Printable encoder/decoder
- As specified in RFC 822
+ As specified in RFC 822.
+
+ TODO: explain what it does. It doesn't seem to decode a full line like
+ "=?iso-8859-1?q?Yannick=20DAmboise?="
+ but only turns "=20D" style encodings to their charcode.
+ Note: apparently sope-mime contains a category on NSData which provides a
+ method to decode the full value:
+ -decodeQuotedPrintableValueOfMIMEHeaderField:
+ (NGMimeMessageParser)
*/
@interface NSString(QuotedPrintableCoding)
/*
- Copyright (C) 2000-2003 SKYRIX Software AG
+ Copyright (C) 2000-2004 SKYRIX Software AG
- This file is part of OGo
+ This file is part of OpenGroupware.org.
OGo is free software; you can redistribute it and/or modify it under
the terms of the GNU Lesser General Public License as published by the
Free Software Foundation, 59 Temple Place - Suite 330, Boston, MA
02111-1307, USA.
*/
-// $Id$
-#include "common.h"
#include "NGQuotedPrintableCoding.h"
+#include "common.h"
#include "NGMemoryAllocation.h"
@implementation NSString(QuotedPrintableCoding)
NSData *data;
unsigned len;
- if ((len = [self cStringLength])) {
+ if ((len = [self cStringLength]) > 0) {
void *buf;
buf = malloc(len + 10);
[self getCString:buf];
data = [NSData dataWithBytes:buf length:len];
- free(buf);
+ if (buf) free(buf);
}
else
data = [NSData data];
# version
-SUBMINOR_VERSION:=117
+SUBMINOR_VERSION:=119
# v4.3.115 requires libFoundation v1.0.59
# v4.2.72 requires libEOControl v4.2.39