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

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Octave-bug-tracker] [bug #44745] single quoted string in sprintf is int


From: Mike Miller
Subject: [Octave-bug-tracker] [bug #44745] single quoted string in sprintf is interpreted
Date: Tue, 07 Apr 2015 01:28:04 +0000
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:35.0) Gecko/20100101 Firefox/35.0 Iceweasel/35.0.1

Follow-up Comment #4, bug #44745 (project octave):

I agree it would be good to get confirmation on what Matlab's sprintf/fprintf
does with invalid backslash escape sequences. What does Matlab produce with


s = sprintf('\z')


I looked through the manual and the backslash string escapes are not mentioned
anywhere in the section "C-Style I/O Functions". They are documented elsewhere
as a feature of double-quoted strings only. So I can understand the confusion
if someone is not familiar with the printf family of functions and that this
is a normal expected feature.

    _______________________________________________________

Reply to this item at:

  <http://savannah.gnu.org/bugs/?44745>

_______________________________________________
  Message sent via/by Savannah
  http://savannah.gnu.org/




reply via email to

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