Mercurial > octave-nkf
changeset 6244:8cab253171b6
[project @ 2007-01-17 21:55:49 by jwe]
author | jwe |
---|---|
date | Wed, 17 Jan 2007 21:55:49 +0000 |
parents | 7924a9086c08 |
children | e154732e00b7 |
files | liboctave/ChangeLog liboctave/lo-sysdep.cc |
diffstat | 2 files changed, 11 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- a/liboctave/ChangeLog Wed Jan 17 21:47:51 2007 +0000 +++ b/liboctave/ChangeLog Wed Jan 17 21:55:49 2007 +0000 @@ -1,3 +1,8 @@ +2007-01-17 Michael Goffioul <michael.goffioul@swing.be> + + * lo-sysdep.cc (octave_chdir): Handle directory names like "C:" on + Windows systems. + 2007-01-16 John W. Eaton <jwe@octave.org> * dSparse.cc: Fix dgbtrf decl for --enable-64.
--- a/liboctave/lo-sysdep.cc Wed Jan 17 21:47:51 2007 +0000 +++ b/liboctave/lo-sysdep.cc Wed Jan 17 21:55:49 2007 +0000 @@ -89,6 +89,12 @@ return retval; #else + +#if defined (__WIN32__) && ! defined (__CYGWIN__) + if (path.length() == 2 && path[1] == ':') + path += "\\"; +#endif + return chdir (path.c_str ()); #endif }