bugGNU Octave - Bugs: bug #53591, [octave forge] (io) csv2cell...

 
 

bug #53591: [octave forge] (io) csv2cell cannot open path containing tilde ('~') char

Submitter:  Martin Kunz <mkunz>
Submitted:  Mon 09 Apr 2018 01:19:26 PM UTC
   
 
Category:  Octave Package Severity:  1 - Wish
Priority:  3 - Low Item Group:  Feature Request
Status:  Fixed Assigned to:  philipnienhuis
Originator Name:  Open/Closed:  * Closed
Release:  * other Operating System:  * GNU/Linux
Fixed Release:  None Planned Release:  None
* Mandatory Fields

Add a New Comment Rich Markup
   

Sun 27 Jan 2019 04:03:23 PM UTC, comment #3: 
Philip Nienhuis <philipnienhuis>
Group Member
Tue 10 Apr 2018 06:26:19 PM UTC, comment #2: 

I'm lowering priority as there's a workaround (by manually adding tilde_expand).
Diving into the C++/Octave API is a bit too challenging for me ATM :-)

Philip Nienhuis <philipnienhuis>
Group Member
Mon 09 Apr 2018 05:22:19 PM UTC, comment #1: 

I'll have look to the "~" problem, could well be that some internal C++/Octave lookalike for tilde_expand is required somewhere.

As to the OV_ISCELL thing, that macro was added by Olaf, I'll cc him.

Philip Nienhuis <philipnienhuis>
Group Member
Mon 09 Apr 2018 01:19:26 PM UTC, original submission:  

I just noticed that csv2cell does not work with paths containing a tilde character. With a file '~/temp/test.csv' written by csvwrite() I get an error if I pass the path containing a tilde to csv2cell:

>> csv2cell("~/temp/test.csv")
error: csv2cell: cannot open file ~/temp/test.csv for reading


... but not if I expand the tilde first:

>> csv2cell(tilde_expand("~/temp/test.csv"))
ans =
{
  [1,1] =  0.51339
  [2,1] =  0.23518
  [1,2] =  0.61376
  [2,2] =  0.60752
}


I am using Octave 4.2.1 with io 2.4.8. Installation of newer versions of io fails ("csvexplode.cc:41:17: error: ‘const class octave_value’ has no member named ‘OV_ISCELL’ [...]"). I can file a separate bug about this if the behaviour is not expected in the transition to a new Octave release.

Martin Kunz <mkunz>

 

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

Attach Files:
   
   
Comment:
   

No files currently attached

 

Depends on the following items: None found

Items that depend on this one: None found

 

Carbon-Copy List
  • -email is unavailable- added by philipnienhuis
  • -email is unavailable- added by mkunz (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 11 latest changes.

    Date Changed by Updated Field Previous Value => Replaced by
    2019-02-18 mtmiller Carbon-CopyRemoved 80942 -
    2019-01-27 philipnienhuis StatusPostponed Fixed
        Open/ClosedOpen Closed
    2018-04-17 philipnienhuis StatusNone Postponed
    2018-04-10 philipnienhuis Priority5 - Normal 3 - Low
    2018-04-10 philipnienhuis Assigned toNone philipnienhuis
        Release4.2.1 other
    2018-04-09 mtmiller Severity3 - Normal 1 - Wish
        Item GroupNone Feature Request
        Summarycsv2cell cannot open path containing tilde ('~') char [octave forge] (io) csv2cell cannot open path containing tilde ('~') char
    2018-04-09 philipnienhuis Carbon-Copy- Added i7tiol

    Back to the top

    Powered by Savane 3.13-758e.
    Corresponding source code