Page 1 of 1

net-error/sys-error returns strange value

Posted: Wed Sep 16, 2009 11:30 am
by kosh
Hello, Lutz. This is bug reports. (and first post)

`net-error' function occasionally returns a strange value when
the function given a number outside the range.

Code: Select all

(net-error 12)                          ;=> (12 "Listen failed")
(net-error -1)                          ;=> (-1 "(null)")

(net-error 75)                          ;=> (75 "application/pdf")
(net-error 100)                         ;-> Segmentation fault
and `(sys-error 0)' return value is different from the manual.

newLISP-Manual wrote:

Code: Select all

(sys-error 0)                           ;=> (0 "Unknown error: 0")
but program returns:

Code: Select all

(sys-error 0)                           ;=> nil
---
kosh

Posted: Wed Sep 16, 2009 12:15 pm
by Lutz
Thanks for the error report kosh. This will be corrected in 10.1.6.