octave-bug-tracker
[Top][All Lists]
Advanced

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

[Octave-bug-tracker] [bug #30377] find_in_path() Misses first character


From: anonymous
Subject: [Octave-bug-tracker] [bug #30377] find_in_path() Misses first character in path list
Date: Wed, 07 Jul 2010 08:56:42 +0000
User-agent: Mozilla/5.0 (Windows; U; Windows NT 6.1; de; rv:1.9.2.6) Gecko/20100625 Firefox/3.6.6

URL:
  <http://savannah.gnu.org/bugs/?30377>

                 Summary: find_in_path() Misses first character in path list
                 Project: GNU Octave
            Submitted by: None
            Submitted on: Mi 07 Jul 2010 08:56:41 UTC
                Category: Libraries
                Severity: 3 - Normal
              Item Group: Incorrect Result
                  Status: None
             Assigned to: None
         Originator Name: Tobias Kiertscher
        Originator Email: address@hidden
             Open/Closed: Open
         Discussion Lock: Any
                 Release: 3.2.4
        Operating System: Microsoft Windows

    _______________________________________________________

Details:

The second line of the function find_in_path() needs to be

  idx=[0 findstr(p,pathsep) length(p)+1];
       ~

instead of

  idx=[1 findstr(p,pathsep) length(p)+1];
       ~

to catch the first character in p.

I found the bug while trying imread() on Windows where the pathlist is
IMAGE_PATH = '.;C:\Octave\3.2.4_gcc-4.4.0\share\octave\3.2.4\imagelib'. And
because of the buggy find_in_path() imread() never find images in current
directory.




    _______________________________________________________

Reply to this item at:

  <http://savannah.gnu.org/bugs/?30377>

_______________________________________________
  Nachricht geschickt von/durch Savannah
  http://savannah.gnu.org/




reply via email to

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