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