[issue4006] os.getenv silently discards env variables with non-UTF-8 values
Martin v. Löwis
report at bugs.python.org
Mon Nov 24 08:39:46 CET 2008
Martin v. Löwis <martin at v.loewis.de> added the comment:
Toshio Kuratomi wrote:
> So what's the reason this is not a bug?
It's a bug only if the implementation deviates from the specification.
In this case, it does not. The behavior is intentional: python
deliberately drops environment variables it cannot represent as a
string. We know that such environment variables can happen in real
life - that's why they get dropped (rather than raising an exception
at startup).
_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue4006>
_______________________________________
More information about the Python-bugs-list
mailing list