[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Octave-bug-tracker] [bug #33611] Matlab-incompatible character string e
From: |
John W. Eaton |
Subject: |
[Octave-bug-tracker] [bug #33611] Matlab-incompatible character string escape processing |
Date: |
Thu, 04 Oct 2012 14:01:34 +0000 |
User-agent: |
Mozilla/5.0 (X11; Linux x86_64; rv:10.0.6) Gecko/20100101 Firefox/10.0.6 Iceweasel/10.0.6 |
Follow-up Comment #5, bug #33611 (project octave):
A character string using single quotes does not do any backslash escape
processing.
But, when given a single quote character string, the printf functions do
perform escape processing on the format argument. That is required for Matlab
compatibility.
One problem is what escape sequences should be recognized, and what should we
do for those that are not recognized. Maybe we shouldn't be warning about
them, or dropping the \ character.
The problem with the edit function is that we want to handle %s in the EDITOR
variable. The easy way to do that is to use the EDITOR variable as a format
in sprintf. But as you see, that causes some trouble. Can you avoid the
problem by using double quotes and double backslashes:
"c:\\foo\\bar\\system\\editor"?
_______________________________________________________
Reply to this item at:
<http://savannah.gnu.org/bugs/?33611>
_______________________________________________
Message sent via/by Savannah
http://savannah.gnu.org/