gforth
[Top][All Lists]
Advanced

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

[gforth] missing file included, error message corrupted


From: Marcos Cruz
Subject: [gforth] missing file included, error message corrupted
Date: Sat, 17 Aug 2013 18:51:06 +0200
User-agent: Mutt/1.5.21 (2010-09-15)

Hi,

Some time ago I realized a strange issue (Gforth 0.7.0 on Raspberry Pi's
Raspbian) when a missing file is included.  I have just tried it with
detail. When the command is given from the command line,

        include missing.fs

...the error message is right. But if the same single command is in an
included file,

        include exists.fs  \ <exists.fs> contains only 'include missing.fs'

...then the failed source line in the error message is randomly
corrupted (squares and other chars are shown instead of letters -- but
the ">>>" and "<<<" marks are printed fine). The way the characters are
corrupted don't make me think about a UTF-8 issue, but a mispointed
string address.

The message is corrupted only the first time. If you try 'include
exits.fs' more times, the error message is fine.

And finally, if <exists.fs> is included from the shell,

        gforth exists.fs

...then the error message is always right.

'require', 'required', 'include' and 'included' make no difference.

I have tried also two other platforms I have access at the moment:

- Gforth 0.6.2 on x86 (AMD K7) Debian works fine, though the error
  messages are different in that version.

- Gforth 0.7.0 on x86 (Atom) Debian... exactly the same problem.

Is it a (known) bug?

Thank you.
Marcos

-- 
http://programandala.net



reply via email to

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