octave-maintainers
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

load-path.cc: do_find_file assumes paths use forward slashes


From: Michael Goffioul
Subject: load-path.cc: do_find_file assumes paths use forward slashes
Date: Fri, 31 Aug 2007 14:44:41 +0200

See the following patch.

2007-08-31  Michael Goffioul <address@hidden>

    * load-path.cc (load_path::do_find_file): do not assume paths
    uses forward slashes


Index: load-path.cc
===================================================================
RCS file: /cvs/octave/src/load-path.cc,v
retrieving revision 1.21
diff -c -p -r1.21 load-path.cc
*** load-path.cc        28 Aug 2007 02:59:59 -0000      1.21
--- load-path.cc        31 Aug 2007 12:41:28 -0000
*************** load_path::do_find_file (const std::stri
*** 743,749 ****
  {
    std::string retval;

!   if (file.find ('/') != NPOS)
      {
        if (octave_env::absolute_pathname (file)
          || octave_env::rooted_relative_pathname (file))
--- 743,749 ----
  {
    std::string retval;

!   if (file.find_first_of (file_ops::dir_sep_chars) != NPOS)
      {
        if (octave_env::absolute_pathname (file)
          || octave_env::rooted_relative_pathname (file))


reply via email to

[Prev in Thread] Current Thread [Next in Thread]