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

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

[Octave-bug-tracker] [bug #46836] fileattrib fails in Win-7


From: Avinoam Kalma
Subject: [Octave-bug-tracker] [bug #46836] fileattrib fails in Win-7
Date: Thu, 07 Jan 2016 05:45:27 +0000
User-agent: Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/47.0.2526.106 Safari/537.36

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

                 Summary: fileattrib fails in Win-7
                 Project: GNU Octave
            Submitted by: avinoam
            Submitted on: Thu 07 Jan 2016 05:45:26 AM GMT
                Category: Octave Function
                Severity: 3 - Normal
                Priority: 5 - Normal
              Item Group: Incorrect Result
                  Status: None
             Assigned to: None
         Originator Name: Avinoam
        Originator Email: 
             Open/Closed: Open
         Discussion Lock: Any
                 Release: dev
        Operating System: Microsoft Windows

    _______________________________________________________

Details:


The problem is with lines


        if (length (attrib) < 12
            || ! strcmp (deblank (attrib(12:end)), r(i).Name))
 

while the offset of 12 is suitable for Windows-XP, Windows-7 & Windows-10
changed the format and the offset is 14.

Maybe we can identify errors in different way:


c:\temp>attrib kuku
File not found - kuku

c:\temp>attrib kuku\kuku
Path not found - C:\temp\kuku

c:\temp>attrib /kuku
Invalid switch - /kuku


search for File/Path Not found or Invalid switch.





    _______________________________________________________

Reply to this item at:

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

_______________________________________________
  Message sent via/by Savannah
  http://savannah.gnu.org/




reply via email to

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