GNOME Bugzilla – Bug 658128
Problem with the newline character in the script-fu console
Last modified: 2016-11-17 00:42:56 UTC
If we copy scheme code which contain newline characters in the console this code is not well interpreted: >'(1 2 3) '(1 2) > (define (test x) (print x) ) #<EOF> > (test 1) Error: (<unknown> : 143167737) eval: unbound variable: test
Confirming.
In testing this report I used the '(1 2 3) list creation as shown by florent53. When I compiled the version of TinyScheme from GIMP's source tree as a standalone program the example did yield a list with the expected three elements. The GUI console code passes the string to scheme_load_string() in TinyScheme. The strig (in hex) received by scheme_load_string() was "27 28 31 20 32 0A 33 29" as expected. This narrows the problem to how TinyScheme is reading data from a string buffer.
http://bugs.debian.org/698847 seems to be related - this bug doesn't happen on amd64, but it does happen on i386.
The two examples work fine for me on a machine with an Intel CPU running 32-bit Linux. If this is specific to 64-bit Linux and an AMD processor I have no way to reproduce the problem unless someone feels like sending me an AMD based laptop I could use.
I can't reproduce this, does this still happen to you?
Since I last commented on this bug my computer is now run with a 64-bit operating system. I haven't been able to reproduce this issue. Let's just close this report. It can be reopened if someone is able to reproduce the issue.
Yeah, let's assume FIXED.