[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Octave-bug-tracker] [bug #42345] fprintf('''%''') throws error
From: |
Mike Miller |
Subject: |
[Octave-bug-tracker] [bug #42345] fprintf('''%''') throws error |
Date: |
Tue, 13 May 2014 15:00:15 +0000 |
User-agent: |
Mozilla/5.0 (X11; Linux i686; rv:17.0) Gecko/20100101 Firefox/17.0 |
Follow-up Comment #5, bug #42345 (project octave):
That is kind of a suspect usage example, though. I mean when that sort of
thing comes up in a C program, you have to make sure you escape % characters
in your string before ever passing them to a printf-like function. That should
definitely be fixed in whatever usage you're seeing this with. The ncdisp
function here shouldn't even be using fprintf, it should use puts(msg)
instead.
If we're going to change anything, we should make it more Matlab-compatible,
so that would be discarding the rest of the string after the bad conversion
specifier I guess.
_______________________________________________________
Reply to this item at:
<http://savannah.gnu.org/bugs/?42345>
_______________________________________________
Message sent via/by Savannah
http://savannah.gnu.org/
- [Octave-bug-tracker] [bug #42345] fprintf('''%''') throws error, Muhali, 2014/05/13
- [Octave-bug-tracker] [bug #42345] fprintf('''%''') throws error, Mike Miller, 2014/05/13
- [Octave-bug-tracker] [bug #42345] fprintf('''%''') throws error, John W. Eaton, 2014/05/13
- [Octave-bug-tracker] [bug #42345] fprintf('''%''') throws error, Muhali, 2014/05/13
- [Octave-bug-tracker] [bug #42345] fprintf('''%''') throws error, John W. Eaton, 2014/05/13
- [Octave-bug-tracker] [bug #42345] fprintf('''%''') throws error,
Mike Miller <=
- [Octave-bug-tracker] [bug #42345] fprintf('''%''') throws error, John W. Eaton, 2014/05/13
- [Octave-bug-tracker] [bug #42345] fprintf('''%''') throws error, John W. Eaton, 2014/05/13
- [Octave-bug-tracker] [bug #42345] fprintf('''%''') throws error, Mike Miller, 2014/05/13
- [Octave-bug-tracker] [bug #42345] fprintf('''%''') throws error, Stefan Mahr, 2014/05/13
- [Octave-bug-tracker] [bug #42345] fprintf('''%''') throws error, Muhali, 2014/05/13
- [Octave-bug-tracker] [bug #42345] fprintf('''%''') throws error, Michael Godfrey, 2014/05/13
- [Octave-bug-tracker] [bug #42345] fprintf('''%''') throws error, Mike Miller, 2014/05/13
- [Octave-bug-tracker] [bug #42345] manual should describe incompatibility in fprintf on invalid %-sequence, Mike Miller, 2014/05/13
- [Octave-bug-tracker] [bug #42345] manual should describe incompatibility in fprintf on invalid %-sequence, Stefan Mahr, 2014/05/14
- [Octave-bug-tracker] [bug #42345] manual should describe incompatibility in fprintf on invalid %-sequence, Mike Miller, 2014/05/14