Ondřej Majerech

Results 4 issues of Ondřej Majerech

I was poking around the REPL when I typed `import` by itself – without parentheses – and Chibi segfaulted: ``` % ./tools/chibi-run > import ./tools/chibi-run: line 3: 43554 Segmentation fault...

``` > 0+nan.0i ERROR on line 23: invalid numeric syntax: #\n > ERROR: undefined variable: an.0i > +nan.0i ERROR: undefined variable: |+nan.0i| > +nan.0+1i ERROR: undefined variable: |+nan.0+1i| > +nan.0+i...

``` (import (scheme base) (scheme read) (scheme write) (scheme file)) (write (read-line (open-input-file "foo.txt"))) ``` Then: ``` % echo "foo\rbar" >foo.txt % ./tools/chibi-run testcase.scm "foo\rbar" ``` R7RS says about `read-line`,...

The relevant definitions in Chibi are: `lib/chibi/system.stub`: ``` (define-c errno getgrgid_r (gid_t (result group) (link string) (value (string-size arg2) int) (result pointer group))) (define-c errno getgrnam_r (string (result group) (link...