// TODO: should move different implementations to different files ...
+
#if NeXT_Foundation_LIBRARY || COCOA_Foundation_LIBRARY
@interface NSString(Encoding_PrivateAPI)
@end /* NSString(Encoding) */
+
#else /* ! NeXT_Foundation_LIBRARY */
+
@implementation NSString(Encoding)
#ifdef __linux__
2007-05-28 Helge Hess <helge.hess@opengroupware.org>
+ * NGMime: fixed compilation on gnustep-base (v4.7.247)
+
* NGMime: improved text body encoding (v4.7.246)
2007-05-15 Wolfgang Sourdeau <WSourdeau@Inverse.CA>
+2007-05-28 Helge Hess <helge.hess@opengroupware.org>
+
+ * NGMimeTextBodyGenerator.m: fixed compilation on gnustep-base
+
2007-05-28 Helge Hess <helge.hess@opengroupware.org>
* NGMimeTextBodyGenerator.m: reworked body contents encoding using the
#include "NGMimeBodyGenerator.h"
#include "NGMimePartGenerator.h"
+#include <NGExtensions/NSString+Encoding.h>
#include "common.h"
@implementation NGMimeTextBodyGenerator
NSStringEncoding encoding = 0;
NSString *charset = [[_part contentType] valueOfParameter:@"charset"];
- if ([charset isNotEmpty])
- encoding = [NSString stringEncodingForEncodingNamed:charset];
+ if ([charset isNotEmpty]) {
+#if NeXT_Foundation_LIBRARY || COCOA_Foundation_LIBRARY
+ encoding = (NSString *)[NSString stringEncodingForEncodingNamed:charset];
+#else
+ encoding = [self _encodingFromContentType:[_part contentType]];
+#endif
+ }
data = [body dataUsingEncoding:
(encoding != 0 ? encoding : NSISOLatin1StringEncoding)];
MAJOR_VERSION:=4
MINOR_VERSION:=7
-SUBMINOR_VERSION:=246
+SUBMINOR_VERSION:=247
# v4.5.214 requires libNGExtensions v4.5.146
# v4.2.149 requires libNGStreams v4.2.34