# HG changeset patch # User jwe # Date 1190050270 0 # Node ID c8081f4c094fe1422e295143f0ad5046999412d6 # Parent c5118619023ef6193da16a5f85679580e7a2d16e [project @ 2007-09-17 17:31:10 by jwe] diff -r c5118619023e -r c8081f4c094f liboctave/ChangeLog --- a/liboctave/ChangeLog Mon Sep 17 16:38:05 2007 +0000 +++ b/liboctave/ChangeLog Mon Sep 17 17:31:10 2007 +0000 @@ -1,3 +1,8 @@ +2007-09-17 John W. Eaton + + * lo-utils.cc (octave_read_complex, octave_read_double): Skip + leading whitespace. + 2007-09-13 John W. Eaton * lo-utils.cc (read_inf_nan_na, octave_read_double, diff -r c5118619023e -r c8081f4c094f liboctave/lo-utils.cc --- a/liboctave/lo-utils.cc Mon Sep 17 16:38:05 2007 +0000 +++ b/liboctave/lo-utils.cc Mon Sep 17 17:31:10 2007 +0000 @@ -26,6 +26,7 @@ #include #endif +#include #include #include @@ -262,9 +263,11 @@ { double d = 0.0; - char c1 = 0; + char c1 = ' '; - c1 = is.get (); + while (isspace (c1)) + c1 = is.get (); + switch (c1) { case '-': @@ -317,9 +320,10 @@ Complex cx = 0.0; - char ch = 0; + char ch = ' '; - ch = is.get (); + while (isspace (ch)) + ch = is.get (); if (ch == '(') { diff -r c5118619023e -r c8081f4c094f src/version.h --- a/src/version.h Mon Sep 17 16:38:05 2007 +0000 +++ b/src/version.h Mon Sep 17 17:31:10 2007 +0000 @@ -25,11 +25,11 @@ #if !defined (octave_version_h) #define octave_version_h 1 -#define OCTAVE_VERSION "2.9.13+" +#define OCTAVE_VERSION "2.9.14" -#define OCTAVE_API_VERSION "api-v25" +#define OCTAVE_API_VERSION "api-v26" -#define OCTAVE_RELEASE_DATE "2007-07-25" +#define OCTAVE_RELEASE_DATE "2007-09-17" #define OCTAVE_COPYRIGHT "Copyright (C) 2007 John W. Eaton and others."