[issue24966] shutil.get_terminal_size() throws ValueError if stdout is detached, no fallback

R. David Murray report at bugs.python.org
Mon Aug 31 17:40:53 CEST 2015


R. David Murray added the comment:

So, the problem is needing to compensate for a broken (according to posix) locale setup.  I don't think quieting get_terminal_size is necessarily the answer here.  See issue 19846 for more than you want to know about the ASCII locale issue.

See also issue 15216, which is probably a solution to your problem, but is an open issue.

----------

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


More information about the Python-bugs-list mailing list