bug-gnustep
[Top][All Lists]
Advanced

[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: Fri, 13 Aug 2021 21:36:39 -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 #22, bug #60952 (project gnustep):

[comment #21 comment #21:]
> With the correct file, there are two failed tests with latest code

The two tests pass with this change. tzdb.h is the only place where
TZ_MAX_TIMES is used, hence it seems safe.

diff --git a/Source/nstzfile.h b/Source/nstzfile.h
index 265974110..72194a0d5 100644
--- a/Source/nstzfile.h
+++ b/Source/nstzfile.h
@@ -81,8 +81,9 @@ struct tzhead {
 ** year's worth of solar time (corrected daily to the nearest second) or
 ** 138 years of Pacific Presidential Election time
 ** (where there are three time zone transitions every fourth year).
+** XXX it needs to be at least 2000 to cope with TZDB v2+ 
 */
-#define TZ_MAX_TIMES   370
+#define TZ_MAX_TIMES   2000
 #endif /* !defined TZ_MAX_TIMES */
 
 #ifndef TZ_MAX_TYPES


    _______________________________________________________

Reply to this item at:

  <https://savannah.gnu.org/bugs/?60952>

_______________________________________________
  Message sent via Savannah
  https://savannah.gnu.org/




reply via email to

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