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

[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/




reply via email to

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