[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 14:33:00 +0000 |
User-agent: |
Mozilla/5.0 (X11; Linux i686; rv:17.0) Gecko/20100101 Firefox/17.0 |
Update of bug #42345 (project octave):
Category: None => Octave Function
Item Group: None => Matlab Compatibility
Status: None => Need Info
Operating System: GNU/Linux => Any
_______________________________________________________
Follow-up Comment #1:
Thanks for your bug report. I think what this is showing is an intentional
Matlab incompatibility when invalid/unrecognized conversion specifiers are
given to printf/sprintf/fprintf.
When Matlab sees an invalid conversion specifier, let's say %r
sprintf('x = %r, here is the rest', 0)
I think it silently either throws away the invalid one and continues, or it
stops converting at that point and returns the string so far. I thought I saw
this come up before but I can't find anything in my mailbox at the moment.
When Octave sees an invalid conversion specifier like the above, it errors
with the error string you saw. Neither %' nor %" mean anything useful, so
Octave prints an error and returns nothing.
Is this an important compatibility that needs to be addressed or is Octave
doing the right thing enforcing correct conversion strings be passed to
printf-like functions?
_______________________________________________________
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 <=
- [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, 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, 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