[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Octave-bug-tracker] [bug #62851] num2str: warning: concatenation of dif
From: |
anonymous |
Subject: |
[Octave-bug-tracker] [bug #62851] num2str: warning: concatenation of different character string types may have unintended consequences |
Date: |
Mon, 1 Aug 2022 16:44:38 -0400 (EDT) |
URL:
<https://savannah.gnu.org/bugs/?62851>
Summary: num2str: warning: concatenation of different
character string types may have unintended consequences
Project: GNU Octave
Submitter: None
Submitted: Mon 01 Aug 2022 08:44:37 PM UTC
Category: Octave Function
Severity: 3 - Normal
Priority: 5 - Normal
Item Group: Unexpected Error or Warning
Status: None
Assigned to: None
Originator Name: Bill Packard
Originator Email: wepackard@gmail.com
Open/Closed: Open
Release: 7.1.0
Discussion Lock: Any
Operating System: Microsoft Windows
_______________________________________________________
Follow-up Comments:
-------------------------------------------------------
Date: Mon 01 Aug 2022 08:44:37 PM UTC By: Anonymous
[warning: concatenation of different character string types may have
unintended consequences
warning: called from
num2str at line 143 column 11
Windows 10
Octave 7.1.0
(side note, unable to disable any or all warnings)
this error seems to show up for any use of num2str with a double quoted
string.
changing line 143 in num2str.m as indicated seems to eliminate the warning:
%% fmt = [deblank(repmat (fmt, 1, nc)), "\n"];
fmt = [deblank(repmat (fmt, 1, nc)), '\n'];
>>>disp(['num2str warning: ', num2str("34"), '.']);
will display the warning
_______________________________________________________
Reply to this item at:
<https://savannah.gnu.org/bugs/?62851>
_______________________________________________
Message sent via Savannah
https://savannah.gnu.org/
- [Octave-bug-tracker] [bug #62851] num2str: warning: concatenation of different character string types may have unintended consequences,
anonymous <=