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

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

[Octave-bug-tracker] [bug #42004] uigetdir returns a dirname that is not


From: Allan Jacobs
Subject: [Octave-bug-tracker] [bug #42004] uigetdir returns a dirname that is not a directory name
Date: Sun, 30 Mar 2014 18:48:15 +0000
User-agent: Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:28.0) Gecko/20100101 Firefox/28.0

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

                 Summary: uigetdir returns a dirname that is not a directory
name
                 Project: GNU Octave
            Submitted by: allanjacobs
            Submitted on: Sun 30 Mar 2014 06:48:14 PM GMT
                Category: Octave Function
                Severity: 3 - Normal
                Priority: 5 - Normal
              Item Group: Incorrect Result
                  Status: None
             Assigned to: None
         Originator Name: allanjacobs
        Originator Email: 
             Open/Closed: Open
         Discussion Lock: Any
                 Release: dev
        Operating System: GNU/Linux

    _______________________________________________________

Details:

1. Create a directory in your home directory that does not have
subdirectories.  Denote it <nosub_dir>.
2. uigetdir(<home_dir>)
3. In file chooser, double click on <nosub_dir>.  The file chooser is now
empty.  Click on the "Choose" button.
4. The returned answer will be <home_dir>/<nosub_dir>/<nosub_dir> and should
be <home_dir>/<nosub_dir>.

The attached code has a Unix-specific fix.  The code looks like it needs
special case handling for the root directory ('/') but it turns out not to be
true in practice.



    _______________________________________________________

File Attachments:


-------------------------------------------------------
Date: Sun 30 Mar 2014 06:48:14 PM GMT  Name: uigetdir.m  Size: 3kB   By:
allanjacobs
Proposed patch for uigetdir.m.
<http://savannah.gnu.org/bugs/download.php?file_id=31078>

    _______________________________________________________

Reply to this item at:

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

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




reply via email to

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