[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: |
John W. Eaton |
Subject: |
[Octave-bug-tracker] [bug #44745] single quoted string in sprintf is interpreted |
Date: |
Tue, 07 Apr 2015 11:48:32 +0000 |
User-agent: |
Mozilla/5.0 (X11; Linux x86_64; rv:31.0) Gecko/20100101 Firefox/31.0 Iceweasel/31.2.0 |
Follow-up Comment #6, bug #44745 (project octave):
OK, I think this came up before, and once I saw that Matlab produced a warning
and completely dropped the escape sequence, I decided to not do anything about
it.
You can write something like
sprintf('%s = %.1f', '\lambda', 532)
if you want to be sure that an escape sequence won't be processed. This is
generally what you will have to do anyway if you want to insert things like
\theta because I don't see a way to guess whether you really want \theta or a
tab followed by 'heta'.
_______________________________________________________
Reply to this item at:
<http://savannah.gnu.org/bugs/?44745>
_______________________________________________
Message sent via/by Savannah
http://savannah.gnu.org/
- [Octave-bug-tracker] [bug #44745] single quoted string in sprintf is interpreted, ederag, 2015/04/06
- [Octave-bug-tracker] [bug #44745] single quoted string in sprintf is interpreted, Rik, 2015/04/06
- [Octave-bug-tracker] [bug #44745] single quoted string in sprintf is interpreted, John W. Eaton, 2015/04/06
- [Octave-bug-tracker] [bug #44745] single quoted string in sprintf is interpreted, ederag, 2015/04/06
- [Octave-bug-tracker] [bug #44745] single quoted string in sprintf is interpreted, Mike Miller, 2015/04/06
- [Octave-bug-tracker] [bug #44745] single quoted string in sprintf is interpreted, Michael Godfrey, 2015/04/07
- [Octave-bug-tracker] [bug #44745] single quoted string in sprintf is interpreted,
John W. Eaton <=
- [Octave-bug-tracker] [bug #44745] single quoted string in sprintf is interpreted, ederag, 2015/04/07
- [Octave-bug-tracker] [bug #44745] single quoted string in sprintf is interpreted, John W. Eaton, 2015/04/07
- [Octave-bug-tracker] [bug #44745] single quoted string in sprintf is interpreted, ederag, 2015/04/07
- [Octave-bug-tracker] [bug #44745] single quoted string in sprintf is interpreted, Rik, 2015/04/08