Monotone-Parent: c33cbc477978136a5d59d29b8df81cdc54cffc70

Monotone-Revision: edc75cae9ade9eb49541479ea8ed489728d9bcc7

Monotone-Author: wsourdeau@inverse.ca
Monotone-Date: 2011-02-24T21:29:44
Monotone-Branch: ca.inverse.sogo
maint-2.0.2
Wolfgang Sourdeau 2011-02-24 21:29:44 +00:00
parent be00aa89b8
commit a038d3e8bb
2 changed files with 5 additions and 1 deletions

View File

@ -1,5 +1,8 @@
2011-02-24 Wolfgang Sourdeau <wsourdeau@inverse.ca>
* OpenChange/MAPIStoreTypes.m (NSObjectFromStreamData): convert
read PT_UNICODE stream data as UTF-16.
* OpenChange/MAPIStoreContext.m
(-setProperty:withFMID:ofTableType:fromFile:): considering the
cached message as a MAPIStoreMessage instance instead of NSDictionary.

View File

@ -214,7 +214,8 @@ id NSObjectFromStreamData (enum MAPITAGS property, NSData* streamData)
{
case PT_UNICODE:
case PT_STRING8:
result = [NSString stringWithUTF8String: [streamData bytes]];
result = [NSString stringWithCharacters: (unichar *) [streamData bytes]
length: [streamData length] / 2];
break;
case PT_BINARY:
result = streamData;