New submission from Alexander Belopolsky <[EMAIL PROTECTED]>: ISO/ANSI C strerror indicates out of range error by setting errno, but existing code incorrectly checks for NULL return value. Attached patch (tested n Mac OS X) makes os.strerror raise ValueError for out of range argument.
---------- files: posix-strerror.diff keywords: patch messages: 64023 nosy: belopolsky severity: normal status: open title: os.strerror does not check for out of range argument type: behavior versions: Python 2.5, Python 2.6, Python 3.0 Added file: http://bugs.python.org/file9754/posix-strerror.diff __________________________________ Tracker <[EMAIL PROTECTED]> <http://bugs.python.org/issue2413> __________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com