octave-maintainers
[Top][All Lists]
Advanced

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

Error in the parser - LF / CRLF


From: Michael Goffioul
Subject: Error in the parser - LF / CRLF
Date: Wed, 23 Apr 2008 16:11:37 +0200

Hi,

I recently (yesterday) synchronized the graphics archive with the main
octave archive. After recompilation, octave does not work anymore and
shows parse errors at startup. Typically, I get the following:

==============
parse error near line 203 of file
D:\Software\VCLibs\local\octave-vc8-debug\share\octave\3.0.0+\m\pkg\pkg.m

  syntax error

>>> : what should these be on windows?)
  ^

error: parse error while reading function file
D:\Software\VCLibs\local\octave-vc8-debug\share\octave\3.0.0+\m\pkg\pkg.m
error: called from
`D:\Software\VCLibs\local\octave-vc8-debug\share\octave\3.0.0+\m\startup/octaverc'
in file 
`D:\Software\VCLibs\local\octave-vc8-debug\share\octave\3.0.0+\m\startup/octaverc'
==============

Investigating a little bit, I noticed the following when parsing
fullfile.m: when
I convert the file in CRLF (Windows) mode instead of the LF (UNIX) mode,
then the problem disappear:

This is what I get with the original file

==============
octave.exe:1> which fullfile
parse error near line 27 of file D:\Sources\MixDT\playground\c\fullfile.m

  syntax error

>>> n components.
             ^

parse error near line 27 of file D:\Sources\MixDT\playground\c\fullfile.m

  syntax error

>>> n components.
             ^

which: `fullfile' is the script file .\fullfile.m
==============

When I convert the file with unix2dos utility, I then get

==============
octave.exe:1> which fullfile
which: `fullfile' is the function from the file
D:\Sources\MixDT\playground\c\fullfile.m
==============

Any idea?

Michael.


reply via email to

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