[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[bug #60952] NSTimeZone fail to deal with tzfile v2+

From: Emmanuel Dreyfus
Subject: [bug #60952] NSTimeZone fail to deal with tzfile v2+
Date: Sat, 24 Jul 2021 20:45:37 -0400 (EDT)
User-agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.14; rv:60.0) Gecko/20100101 Firefox/60.0

Follow-up Comment #6, bug #60952 (project gnustep):

[comment #1 comment #1:]
> The new code is now in the git repository;  please give it a try and update
this issue to let me know how you got on with it.

Not yes tested, but I note this bug:

    version = header->tzh_version[0];   
Now version is either '\0' (for version 1), '2' or '3'

    if (1 == version)
That will always be false.

If you want version to be the version as an int, you could write:
     version = header->tzh_version[0] ? header->tzh_version[0] - 0x30 : 1;


Reply to this item at:


  Message sent via Savannah

reply via email to

[Prev in Thread] Current Thread [Next in Thread]