help-octave
[Top][All Lists]
Advanced

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

Re: Octave 3.6.1 edit.m problem under Windows 7 x64


From: Philip Nienhuis
Subject: Re: Octave 3.6.1 edit.m problem under Windows 7 x64
Date: Wed, 2 May 2012 11:44:59 -0700 (PDT)

cryingfist wrote
> 
> Dear Octave mailing list,
> 
> I've recently followed all of the instructions to manually install octave
> under Windows (I'm running Windows 7 x64). I've extracted all the files
> under C:\ so that there's no spaces in the directory name as requested. 
> I've also edited octaverc so that the chosen editor is Notepad++. As a
> matter of fact if I type "EDITOR" into the Octave console, Octave returns: 
> 
> ans= C:\Programmi (x86)\Notepad++\notepad++.exe
> 
> (please note, "Programmi" is not a misspelled "Programs", it's an Italian
> computer... )
> 
> but if I write "edit" in the prompt i receive the following error:
> 
> warning: unrecognized escape sequence '\P' -- converting to 'P'
> warning: unrecognized escape sequence '\N' -- converting to 'N'
> error: system: CreateProcess failed -- can't create child process 
> error: called from:
> error: C:\Octave3.6.1_gcc4.6.2\share\octave\3.6.1\m\miscellaneous\edit.m
> at line 212, column 7
> 
> I've done a little research and I've understood that it's a known
> problem...is there a way to resolve it? I've also understood there's a
> workaround...is that true? and, if yes, what's that?
> 
> Thank you!
> 

EDITOR ("C:\\Programmi (x86)\\Notepad++\\notepad++.exe")
## (i.e., double backslashes).
## or
EDITOR ("C:/Programmi (x86)/Notepad++/notepad++.exe")
## (forward slashes)

If it doesn't work, perhaps even quadruple backslashes.

On POSIX systems (incl. MinGW under Windows) "\" is an escape character. So
to have a " you'll have to escape it as well using "\\"

P

--
View this message in context: 
http://octave.1599824.n4.nabble.com/Octave-3-6-1-edit-m-problem-under-Windows-7-x64-tp4604058p4604113.html
Sent from the Octave - General mailing list archive at Nabble.com.


reply via email to

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