[Adium-devl] XML logging in 10.3
Colin Barrett
timber at lava.net
Sun Jul 9 00:21:44 UTC 2006
The only thing I can think of that would cause that type of output is
this call
CFXMLCreateStringByEscapingEntities(kCFAllocatorDefault, (CFStringRef)
someString, NULL)
Somehow always returning nil.
The definition and relative header documentation:
/* Escaping and unescaping XML entities in CFStrings. The standard
XML entities
are always replaced. */
/* Creates a CFString by replacing entities that appear in the
entities dictionary.
Dictionary keys are the entities themselves, and the values
should be CFStrings
containing the expansion. Pass NULL for entitiesDictionary to
indicate no entities
other than the standard five. */
CF_EXPORT
CFStringRef CFXMLCreateStringByEscapingEntities(CFAllocatorRef
allocator, CFStringRef string, CFDictionaryRef entitiesDictionary)
AVAILABLE_MAC_OS_X_VERSION_10_3_AND_LATER;
CF_EXPORT
CFStringRef CFXMLCreateStringByUnescapingEntities(CFAllocatorRef
allocator, CFStringRef string, CFDictionaryRef entitiesDictionary)
AVAILABLE_MAC_OS_X_VERSION_10_3_AND_LATER;
Could it be an issue with kCFAllocatorDefault? Does 10.3 require that
entitiesDictionary is not null?
Another possible issue is that I'm casting the result of this call
back to an NSString and then calling autorelease:
[(NSString *)CFXMLCreateStringByEscapingEntities(kCFAllocatorDefault,
(CFStringRef)someString, NULL) autorelease];
Does 10.3 not like this? CFString and NSString are TFB'd, so I can't
see a problem with it. But I think it's worth noting.
I'm pretty sure I've narrowed it down to the above. I'm clueless as
to what might actually be happening, though. Anyone have any other
ideas?
-Colin
On Jul 8, 2006, at 2:14 PM, Colin Barrett wrote:
> What in the...?
>
> Something must be triggering one of the protective if statements.
> I'll take a further look right now.
>
> -Colin
>
> On Jul 8, 2006, at 12:51 PM, Evan Schoenberg wrote:
>
>> http://trac.adiumx.com/ticket/4526
>>
>> Take a look at the attached log samples. What in the world?
>> _______________________________________________
>> Adium-devl mailing list
>> Adium-devl at adiumx.com
>> http://adiumx.com/mailman/listinfo/adium-devl_adiumx.com
>
>
> _______________________________________________
> Adium-devl mailing list
> Adium-devl at adiumx.com
> http://adiumx.com/mailman/listinfo/adium-devl_adiumx.com
>
More information about the devel
mailing list