# HG changeset patch # User John W. Eaton # Date 1260343230 18000 # Node ID 31436dcf7d0fc2d905205076b0aaa0c08319dbcb # Parent 55061c7c8d6edd245848603db474b38cc92b81b9 call nstrftime, not my_strftime diff --git a/liboctave/ChangeLog b/liboctave/ChangeLog --- a/liboctave/ChangeLog +++ b/liboctave/ChangeLog @@ -1,3 +1,8 @@ +2009-12-09 John W. Eaton + + * oct-time.cc (octave_base_tm::strftime): Call nstrftime instead + of my_strftime. + 2009-12-09 John W. Eaton * oct-time.cc: Include strftime.h. Don't provide decl for strftime. diff --git a/liboctave/oct-time.cc b/liboctave/oct-time.cc --- a/liboctave/oct-time.cc +++ b/liboctave/oct-time.cc @@ -267,7 +267,7 @@ buf = new char[bufsize]; buf[0] = '\0'; - chars_written = my_strftime (buf, bufsize, fmt_str, &t, 0, 0); + chars_written = nstrftime (buf, bufsize, fmt_str, &t, 0, 0); bufsize *= 2; } diff --git a/src/ChangeLog b/src/ChangeLog --- a/src/ChangeLog +++ b/src/ChangeLog @@ -1,3 +1,7 @@ +2009-12-09 John W. Eaton + + * load-save.cc: Call nstrftime instead of my_strftime. + 2009-12-09 John W. Eaton * load-save.cc: Include strftime.h. diff --git a/src/load-save.cc b/src/load-save.cc --- a/src/load-save.cc +++ b/src/load-save.cc @@ -1184,8 +1184,8 @@ bdt = *gmtime (&now); memset (headertext, ' ', 124); // ISO 8601 format date - my_strftime (headertext, 124, "MATLAB 5.0 MAT-file, written by Octave " - OCTAVE_VERSION ", %Y-%m-%d %T UTC", &bdt, 1, 0); + nstrftime (headertext, 124, "MATLAB 5.0 MAT-file, written by Octave " + OCTAVE_VERSION ", %Y-%m-%d %T UTC", &bdt, 1, 0); // The first pair of bytes give the version of the MAT file // format. The second pair of bytes form a magic number which