mirror of
https://github.com/inverse-inc/sogo.git
synced 2026-04-04 12:58:50 +00:00
Monotone-Parent: 88b07aa8edf775fa02705a9c03a0f8f14f905db3
Monotone-Revision: b60a07f4bcb416be85fafcd1299d398c09b58190 Monotone-Author: wsourdeau@inverse.ca Monotone-Date: 2011-07-18T23:47:44 Monotone-Branch: ca.inverse.sogo
This commit is contained in:
@@ -1,3 +1,9 @@
|
||||
2011-07-18 Wolfgang Sourdeau <wsourdeau@inverse.ca>
|
||||
|
||||
* OpenChange/NSString+MAPIStore.m (-asUnicodeInMemCtx:): use an
|
||||
alternative method to convert the string to a utf8 array of bytes
|
||||
to avoid an undefined conditional bug in GNUstep.
|
||||
|
||||
2011-07-18 Francis Lachapelle <flachapelle@inverse.ca>
|
||||
|
||||
* SoObjects/SOGo/SOGoSystemDefaults.m (-addDomainToUID): new
|
||||
|
||||
@@ -22,6 +22,8 @@
|
||||
|
||||
#include <talloc.h>
|
||||
|
||||
#import <Foundation/NSData.h>
|
||||
|
||||
#import "NSString+MAPIStore.h"
|
||||
|
||||
@implementation NSString (MAPIStoreDataTypes)
|
||||
@@ -29,8 +31,10 @@
|
||||
- (char *) asUnicodeInMemCtx: (void *) memCtx
|
||||
{
|
||||
char *unicode;
|
||||
NSData *encoded;
|
||||
|
||||
unicode = talloc_strdup (memCtx, [self UTF8String]);
|
||||
encoded = [self dataUsingEncoding: NSUTF8StringEncoding];
|
||||
unicode = talloc_strndup (memCtx, [encoded bytes], [encoded length]);
|
||||
|
||||
return unicode;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user