bugGNU Octave - Bugs: bug #43687, uiputfile does not append selected...

 
 

bug #43687: uiputfile does not append selected extension to file name

Submitter:  John Donoghue <lostbard>
Submitted:  Mon 24 Nov 2014 09:34:14 PM UTC
   
 
Category:  Octave Function Severity:  3 - Normal
Priority:  5 - Normal Item Group:  Matlab Compatibility
Status:  Fixed Assigned to:  lostbard
Originator Name:  Open/Closed:  * Closed
Release:  * dev Operating System:  * Any
Fixed Release:  None Planned Release:  None
* Mandatory Fields

Add a New Comment Rich Markup
   

Wed 26 Nov 2014 12:57:55 PM UTC, comment #3: 
John Donoghue <lostbard>
Group Member
Tue 25 Nov 2014 05:48:14 PM UTC, comment #2: 

Patch attached

(file #32543)

John Donoghue <lostbard>
Group Member
Tue 25 Nov 2014 05:41:14 PM UTC, comment #1: 

In addition using . as the filter in matlab is treated the same as All files.

John Donoghue <lostbard>
Group Member
Mon 24 Nov 2014 09:34:14 PM UTC, original submission:  

When using uiputfile and entering a name in the dialog box without its extension, the name does not auto add the selected extension to the name.

I tried both 3.8.2 and 4.1.0+ with command line and gui.

Example, entering name of 'test'

[name, path, idx] =  uiputfile('*.txt')
name = test
path = /home/john
idx =  1



In matlab ( I tested R2010b and R2013a), the extension gets appended to name ie: test.txt


[name, path, idx] =  uiputfile('*.txt')
name =
test.txt
path =
/home/john/
idx =
    1





John Donoghue <lostbard>
Group Member

 

(Note: upload size limit is set to 16384 kB, after insertion of the required escape characters.)

Attach Files:
   
   
Comment:
   

Attached Files
file #32543:  uiputfilefix.patch added by lostbard (2KiB - application/octet-stream)

 

Depends on the following items: None found

Items that depend on this one: None found

 

Carbon-Copy List
  • -email is unavailable- added by lostbard (Submitted the item)
  •  

    There are 0 votes so far. Votes easily highlight which items people would like to see resolved in priority, independently of the priority of the item set by tracker managers.

    Only group members can vote.

     

    Follow 6 latest changes.

    Date Changed by Updated Field Previous Value => Replaced by
    2014-11-30 lostbard StatusReady For Test Fixed
        Open/ClosedOpen Closed
    2014-11-26 lostbard StatusPatch Submitted Ready For Test
    2014-11-25 lostbard Attached File- Added uiputfilefix.patch, #32543
        StatusNone Patch Submitted
        Assigned toNone lostbard

    Back to the top

    Powered by Savane 3.13-02a9.
    Corresponding source code