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

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

[Octave-bug-tracker] [bug #48182] uiputfile returns incorrect filename


From: Rik
Subject: [Octave-bug-tracker] [bug #48182] uiputfile returns incorrect filename
Date: Wed, 8 Jun 2016 18:48:46 +0000 (UTC)
User-agent: Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:43.0) Gecko/20100101 Firefox/43.0

Follow-up Comment #1, bug #48182 (project octave):

Annoying.  This is clearly an issue in uiputfile.m.  After calling the file
dialog function it post-processes the result.  See below.


  ## Append extension to the name if it isn't already added.
  if (ischar (retfile))
    ext = outargs{1}{retindex};
    ext = strrep (ext, "*", "");

    if (length (retfile) >= length (ext))
      if (! strcmp (retfile(end-length (ext)+1:end), ext))
        retfile = [retfile ext];
      endif
    endif
  endif


Does anyone know if this whole if branch is necessary anymore?  I'd just as
soon delete the whole thing.


    _______________________________________________________

Reply to this item at:

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

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




reply via email to

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