net-error/sys-error returns strange value

For the Compleat Fan
Locked
kosh
Posts: 72
Joined: Sun Sep 13, 2009 5:38 am
Location: Japan
Contact:

net-error/sys-error returns strange value

Post 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

Lutz
Posts: 5289
Joined: Thu Sep 26, 2002 4:45 pm
Location: Pasadena, California
Contact:

Post by Lutz »

Thanks for the error report kosh. This will be corrected in 10.1.6.

Locked