head 1.5; access; symbols pkgsrc-2013Q2:1.5.0.12 pkgsrc-2013Q2-base:1.5 pkgsrc-2012Q4:1.5.0.10 pkgsrc-2012Q4-base:1.5 pkgsrc-2011Q4:1.5.0.8 pkgsrc-2011Q4-base:1.5 pkgsrc-2011Q2:1.5.0.6 pkgsrc-2011Q2-base:1.5 pkgsrc-2009Q4:1.5.0.4 pkgsrc-2009Q4-base:1.5 pkgsrc-2008Q4:1.5.0.2 pkgsrc-2008Q4-base:1.5 pkgsrc-2008Q3:1.4.0.12 pkgsrc-2008Q3-base:1.4 cube-native-xorg:1.4.0.10 cube-native-xorg-base:1.4 pkgsrc-2008Q2:1.4.0.8 pkgsrc-2008Q2-base:1.4 cwrapper:1.4.0.6 pkgsrc-2008Q1:1.4.0.4 pkgsrc-2008Q1-base:1.4 pkgsrc-2007Q4:1.4.0.2 pkgsrc-2007Q4-base:1.4 pkgsrc-2007Q3:1.3.0.2 pkgsrc-2007Q3-base:1.3 pkgsrc-2007Q2:1.2.0.28 pkgsrc-2007Q2-base:1.2 pkgsrc-2007Q1:1.2.0.26 pkgsrc-2007Q1-base:1.2 pkgsrc-2006Q4:1.2.0.24 pkgsrc-2006Q4-base:1.2 pkgsrc-2006Q3:1.2.0.22 pkgsrc-2006Q3-base:1.2 pkgsrc-2006Q2:1.2.0.20 pkgsrc-2006Q2-base:1.2 pkgsrc-2006Q1:1.2.0.18 pkgsrc-2006Q1-base:1.2 pkgsrc-2005Q4:1.2.0.16 pkgsrc-2005Q4-base:1.2 pkgsrc-2005Q3:1.2.0.14 pkgsrc-2005Q3-base:1.2 pkgsrc-2005Q2:1.2.0.12 pkgsrc-2005Q2-base:1.2 pkgsrc-2005Q1:1.2.0.10 pkgsrc-2005Q1-base:1.2 pkgsrc-2004Q4:1.2.0.8 pkgsrc-2004Q4-base:1.2 pkgsrc-2004Q3:1.2.0.6 pkgsrc-2004Q3-base:1.2 pkgsrc-2004Q2:1.2.0.4 pkgsrc-2004Q2-base:1.2 pkgsrc-2004Q1:1.2.0.2 pkgsrc-2004Q1-base:1.2 pkgsrc-2003Q4:1.1.1.1.0.10 pkgsrc-2003Q4-base:1.1.1.1 netbsd-1-6-1:1.1.1.1.0.6 netbsd-1-6-1-base:1.1.1.1 netbsd-1-6:1.1.1.1.0.8 netbsd-1-6-RELEASE-base:1.1.1.1 pkgviews:1.1.1.1.0.4 pkgviews-base:1.1.1.1 buildlink2:1.1.1.1.0.2 buildlink2-base:1.1.1.1 netbsd-1-5-PATCH003:1.1.1.1 netbsd-1-5-PATCH001:1.1.1.1 pkgsrc-base:1.1.1.1 TNF:1.1.1; locks; strict; comment @# @; 1.5 date 2008.11.07.15.59.57; author jwise; state dead; branches; next 1.4; 1.4 date 2007.12.15.05.54.51; author adam; state Exp; branches; next 1.3; 1.3 date 2007.09.24.20.56.46; author drochner; state Exp; branches; next 1.2; 1.2 date 2003.12.04.11.15.37; author adam; state dead; branches; next 1.1; 1.1 date 2001.03.27.12.06.55; author wennmach; state Exp; branches 1.1.1.1; next ; 1.1.1.1 date 2001.03.27.12.06.55; author wennmach; state Exp; branches; next ; desc @@ 1.5 log @Per discussion with maintainer, remove octave-current, which is substantially less current than the current octave. @ text @$NetBSD: patch-ai,v 1.4 2007/12/15 05:54:51 adam Exp $ --- liboctave/oct-time.cc.orig 2007-11-30 19:53:30.000000000 +0100 +++ liboctave/oct-time.cc @@@@ -34,6 +34,8 @@@@ along with Octave; see the file COPYING. #include #endif +#include + #if defined (OCTAVE_USE_WINDOWS_API) #include #undef min @@@@ -354,6 +356,9 @@@@ octave_strptime::init (const std::string char *p = strsave (str.c_str ()); char *q = oct_strptime (p, fmt.c_str (), &t); + /* fill in wday and yday */ + t.tm_isdst = -1; + mktime(&t); // Fill in wday and yday, but only if mday is valid and the mon and year // are filled in, avoiding issues with mktime and invalid dates. @ 1.4 log @Changes 2.9.19: * bug fixes @ text @d1 1 a1 1 $NetBSD$ @ 1.3 log @-Fix non-portable use of strptime(3): SUSv3 does not require it to do calendar math and fill in wday/yday. Use mktime(3) to have those fields calculated. -Fix non-portable use of sort(1) (in an example/selftest only): the "-n" option should "restrict" the sort key to a numeric field, there is no requirement to use another key if no numbers are present. -bump PKGREVISION @ text @d3 1 a3 1 --- liboctave/oct-time.cc.orig 2007-09-24 13:33:47.000000000 +0200 d5 1 a5 1 @@@@ -35,6 +35,8 @@@@ Software Foundation, Inc., 51 Franklin S d22 2 a23 2 if (q) nchars = q - p + 1; @ 1.2 log @Changes 2.1.52: * Emacs fixes * The ++ and -- operators now work for indexed matrices * The built-in variable argv is now a list of strings instead of a string vec. * The new built-in variable `crash_dumps_octave_core' controls whether Octave writes user variables to the file `octave-core' when it crashes or is killed by a signal. * Loops of the form `for i = STRING ... endfor' are now allowed. * It is now possible to set the iteration limit for lsode using lsode_options ("step limit", N). * New functions * The save command now accepts the option -append to save the variables at the end of the file, leaving the existing contents. * New command-line option --no-history (also available using the single character option -H) inhibits saving command history. * The built-in variable `PWD' has been removed. * New operators. * New built-in data types. * Commas in global statements are no longer special. * It is now possible to declare static variables that retain their values across function calls. More --> See "NEWS" @ text @d1 1 a1 1 $NetBSD: patch-ai,v 1.1 2001/03/27 12:06:55 wennmach Exp $ d3 5 a7 4 --- Makefile.orig Fri Dec 29 22:07:09 2000 +++ Makefile Fri Dec 29 22:07:16 2000 @@@@ -8,7 +8,7 @@@@ # Department of Chemical Engineering d9 7 a15 5 TARGETS = octave-bug mkoctfile libcruft liboctave kpathsea dlfcn \ - readline src scripts doc check octave.info INSTALL.OCTAVE BUGS \ + src scripts doc check octave.info INSTALL.OCTAVE BUGS \ install install-strip uninstall tags TAGS dist conf-dist \ snapshot snapshot-version d17 7 @ 1.1 log @Initial revision @ text @d1 1 a1 1 $NetBSD$ @ 1.1.1.1 log @Initial import of octave-current (octave-2.1.33), a high-level language primarily intended for numerical computations. Submitted in PR 9851 by Adam Ciarcinski, updated by Adam and by myself. @ text @@