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

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

[Octave-bug-tracker] [bug #49536] many functions that expect a "string"


From: Philip Nienhuis
Subject: [Octave-bug-tracker] [bug #49536] many functions that expect a "string" silently truncate char matrix arguments (octave_value::string_value)
Date: Sat, 5 Nov 2016 12:32:14 +0000 (UTC)
User-agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:43.0) Gecko/20100101 Firefox/43.0 SeaMonkey/2.40

Follow-up Comment #3, bug #49536 (project octave):

Is this really a problem?
AFAICS char matrices aren't often used. cellstr arrays are much more
practical.

Matlab has the same issue and even behaves slightly worse (which in a way is
reassuring :-) )

Could transposing a char array before feeding it to string functions help?
For sprintf with-a-format-string, help and strrep it works to the extent that
a 1xN vector is returned but in the right "order"; the other functions you
mention are still oblivious.


    _______________________________________________________

Reply to this item at:

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

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




reply via email to

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