Sorry guys, I was putting the blame on you when trying to load a file not 
properly newline-terminated, but it was *all my fault*.
Here's the patch.
Jerome
-- 
[EMAIL PROTECTED]
diff -urbN parrot.orig/languages/Befunge-93/README parrot/languages/Befunge-93/README
--- parrot.orig/languages/Befunge-93/README	Sat Aug 17 02:18:34 2002
+++ parrot/languages/Befunge-93/README	Mon Aug 19 21:18:02 2002
@@ -19,7 +19,7 @@
 The -v flag makes the befunge interpreter more verbose.
 
 
-NOTES
+FILES
 -----
 The files are the following:
         befunge.pasm    the main loop
@@ -36,8 +36,6 @@
 
 BUGS
 ----
-* The befunge program *should* be properly newline terminated because
-  of Parrot's I/O...
 * The "input char" and "input int" instructions are a bit broken since
   Parrot does not handle I/O very well...
 
@@ -66,8 +64,8 @@
   idea.
 * Leon Brocard (again), because he told me he will help me with the
   Befunge-98 version :o)
-* Dan Sugalski and all the parrot folks for providing such a nice toy
-  to play with.
+* Dan Sugalski and all the parrot folks (you know who you are) for
+  providing such a nice toy to play with.
 
 
 COPYRIGHT
diff -urbN parrot.orig/languages/Befunge-93/load.pasm parrot/languages/Befunge-93/load.pasm
--- parrot.orig/languages/Befunge-93/load.pasm	Sat Aug 17 02:18:34 2002
+++ parrot/languages/Befunge-93/load.pasm	Mon Aug 19 21:16:58 2002
@@ -23,6 +23,7 @@
 # Split the buffer around its newlines.
 LOAD_EOF:
         close P0
+        concat S1, "\n"         # Add a trailing newline if needed.
         length I0, S1           # I0 =length of the buffer
         set I1, 0               # I1 =ranges from 0 to I0
         set I2, 0               # I2 =beginning of current line


Reply via email to