Author: stefanbidi
Date: Fri Jul 15 04:49:13 2011
New Revision: 33551
URL: http://svn.gna.org/viewcvs/gnustep?rev=33551&view=rev
Log:
Started adding CFTimeZone. This CF type is simply a C binding to the GNUstep
NSTimeZone class, it will use ICU's zoneinfo64 (ICU version >= 4.4) and
zoneinfo (ICU version < 4.4) resource bundle. The advantage of using ICU's
resource is that tz info does not need to be distributed along with the
library. ICU already packages these bundles by default anyway, and since
corebase uses it through-and-through, I think it makes sense to use the data
already available. The disadvantage is that, despite being similar,
zoneinfo/zoneinfo64 is not in the same format as tz files. That is, if
CFTimeZoneGetData() is used, a CFDataRef instance will need to be created when
this function is first called. There will also need to be a separate code path
for CFTimeZoneCreate() which takes a CFDataRef. Keep in mind that, despite
residing within libicudata.so, ICU's resource bundles can be updated
independently from the other libraries.
Added:
libs/corebase/trunk/Headers/CoreFoundation/CFTimeZone.h
libs/corebase/trunk/Source/CFTimeZone.c
libs/corebase/trunk/Tests/CFTimeZone/
libs/corebase/trunk/Tests/CFTimeZone/TestInfo
libs/corebase/trunk/Tests/CFTimeZone/create.m
Modified:
libs/corebase/trunk/ChangeLog
libs/corebase/trunk/Source/CFRuntime.m
libs/corebase/trunk/Source/GNUmakefile
_______________________________________________
Gnustep-cvs mailing list
[email protected]
https://mail.gna.org/listinfo/gnustep-cvs