[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Octave-bug-tracker] [bug #49536] many functions that expect a "string"
From: |
Ceral Paquet |
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 09:19:06 +0000 (UTC) |
User-agent: |
Mozilla/5.0 (X11; Linux x86_64; rv:38.9) Gecko/20100101 Goanna/2.2 Firefox/38.9 PaleMoon/26.5.0 |
Follow-up Comment #2, bug #49536 (project octave):
Matlab:
% added spaces to make strings the same length
>> s = [' this '; ' is a '; ' char '; 'matrix']
s =
this
is a
char
matrix
>> sprintf (s)
ans =
mticahshti arsari x
>> sprintf ('%s', s)
ans =
mticahshti arsari x
>> error (s)
mticahshti arsari x
>> help (s)
Warning: The following error was caught while executing
'helpUtils.helpProcess' class destructor:
Input must be a row vector of characters.
> In help (line 45)
>> struct (s, 0)
Error using struct
Field name must be a string vector.
>> system (s);
Error using system
Argument must contain a string.
>> strrep (s, 'a', 'b')
Error using strrep
Input strings must have one row.
_______________________________________________________
Reply to this item at:
<http://savannah.gnu.org/bugs/?49536>
_______________________________________________
Message sent via/by Savannah
http://savannah.gnu.org/
- [Octave-bug-tracker] [bug #49536] many functions that expect a "string" silently truncate char matrix arguments (octave_value::string_value), Mike Miller, 2016/11/04
- [Octave-bug-tracker] [bug #49536] many functions that expect a "string" silently truncate char matrix arguments (octave_value::string_value), Ceral Paquet, 2016/11/05
- [Octave-bug-tracker] [bug #49536] many functions that expect a "string" silently truncate char matrix arguments (octave_value::string_value),
Ceral Paquet <=
- [Octave-bug-tracker] [bug #49536] many functions that expect a "string" silently truncate char matrix arguments (octave_value::string_value), Philip Nienhuis, 2016/11/05
- [Octave-bug-tracker] [bug #49536] many functions that expect a "string" silently truncate char matrix arguments (octave_value::string_value), Mike Miller, 2016/11/07
- [Octave-bug-tracker] [bug #49536] many functions that expect a "string" silently truncate char matrix arguments (octave_value::string_value), Colin Macdonald, 2016/11/22
- [Octave-bug-tracker] [bug #49536] many functions that expect a "string" silently truncate char matrix arguments (octave_value::string_value), John W. Eaton, 2016/11/22
- Message not available
- [Octave-bug-tracker] [bug #49536] many functions that expect a "string" silently truncate char matrix arguments (octave_value::string_value), Mike Miller, 2016/11/23
- [Octave-bug-tracker] [bug #49536] many functions that expect a "string" silently truncate char matrix arguments (octave_value::string_value), Rik, 2016/11/28