[issue14153] Expose os.device_encoding() at the C level
Antoine Pitrou
report at bugs.python.org
Wed Feb 29 16:19:27 CET 2012
Antoine Pitrou <pitrou at free.fr> added the comment:
I don't seen any refcounting problem here, but your patch is buggy.
Before patch:
>>> os.device_encoding(0)
'UTF-8'
After patch:
>>> os.device_encoding(0) is None
True
Interestingly, it seems there is no test for os.device_encoding. Perhaps add one to test_os?
----------
_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue14153>
_______________________________________
More information about the Python-bugs-list
mailing list