net-error/sys-error returns strange value

Started by kosh, September 16, 2009, 04:30:27 AM

Previous topic - Next topic

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.


(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:
(sys-error 0)                           ;=> (0 "Unknown error: 0")
but program returns:
(sys-error 0)                           ;=> nil

---

kosh

Lutz

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