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

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

[Octave-bug-tracker] [bug #58617] cell2struct silently truncates char ma


From: John W. Eaton
Subject: [Octave-bug-tracker] [bug #58617] cell2struct silently truncates char matrices
Date: Tue, 8 Sep 2020 13:54:05 -0400 (EDT)
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:68.0) Gecko/20100101 Firefox/68.0

Update of bug #58617 (project octave):

                  Status:               Confirmed => Ready For Test         

    _______________________________________________________

Follow-up Comment #5:

The extra return statement was probably left over from when error didn't throw
an exception, so we just set error_state and returned.

One issue is definitely bug #49536, that string_value is only returning the
first row of a character array and truncating arrays without warning.

RE comment #1, cellstr (['foo';'bar';'baz']) creates a 3x1 cell array with
each element containing a 1x3 character array, but {['foo';'bar';'baz']}
creates a 1x1 cell array containing a 3x3 character array.

I pushed the following change for the immediate problem with cell2struct and
will leave the problem with string_value/cellstr_value to bug #49536.

http://hg.savannah.gnu.org/hgweb/octave/rev/b3770a5f210d

    _______________________________________________________

Reply to this item at:

  <https://savannah.gnu.org/bugs/?58617>

_______________________________________________
  Message sent via Savannah
  https://savannah.gnu.org/




reply via email to

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