[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Octave-bug-tracker] [bug #64883] sprintf with backspace character inser
From: |
Arun Giridhar |
Subject: |
[Octave-bug-tracker] [bug #64883] sprintf with backspace character inserts newline |
Date: |
Sun, 12 Nov 2023 01:52:13 -0500 (EST) |
Update of bug #64883 (project octave):
Category: None => Octave Function
Severity: 3 - Normal => 2 - Minor
Item Group: None => Matlab Compatibility
_______________________________________________________
Follow-up Comment #1:
That's not because of sprintf. It's because of disp. I use this pattern
frequently and it works as intended for me, but I skip the disp-sprintf
combination and go straight with printf or fprintf. You can also try
printf(sprintf(...)) to verify that the code works with sprintf.
Lowering severity because of the workaround.
If there is an incompatibility with disp's behavior between Matlab and Octave,
we can discuss that. Does Matlab always suppress a newline in disp when passed
a string that has no newline? Is that documented by them?
_______________________________________________________
Reply to this item at:
<https://savannah.gnu.org/bugs/?64883>
_______________________________________________
Message sent via Savannah
https://savannah.gnu.org/