[issue1443504] locale.getpreferredencoding() dies when setlocale fails

"Martin v. Löwis" <report@bugs.python.org> at psf.upfronthosting.co.za "Martin v. Löwis" <report@bugs.python.org> at psf.upfronthosting.co.za
Sun May 3 19:16:10 CEST 2009


Martin v. Löwis <martin at v.loewis.de> added the comment:

> """
> ERRORS
>        No errors are defined.
> """
> 
> So isn't it debatable if returning the NULL pointer really is an error?

As Jeroen reports, this really means two different things
a) "no errors" really means "no errno codes". Whether or not
   an error may occur is an independent issue.
b) "are defined" really means that POSIX doesn't define any
   standard errno codes; the system may indeed still set errno
   (C99, 7.5p3)

----------

_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue1443504>
_______________________________________


More information about the Python-bugs-list mailing list