On Tue, May 20, 2008 at 10:22:37AM +0200, "Martin v. L?wis" wrote: > I'd like to propose a new environment variable PYTHONSTDOUTENCODING. > This is meant to solve various problems that people had with Python > not detecting their terminal encoding correctly; it would override > any detection that Python would use for determining the encoding of > stdout (and stdin - but that's less relevant in 2.x). Is it to override locale settings in case the user wants a different encoding? for such cases as redirected stdout, or windows console (which has an "OEM" encoding that differs from the locale encoding)? > Naming contest: it probably would be the longest of the PYTHON* > variables. I would not want to call it PYTHONENCODING, or > PYTHONSTDENCODING, though, because people might infer that it > affects sys.getdefaultencoding(), which it shouldn't. PYTHONIOENCODING? Oleg. -- Oleg Broytmann http://phd.pp.ru/ phd at phd.pp.ru Programmers don't die, they just GOSUB without RETURN.
RetroSearch is an open source project built by @garambo | Open a GitHub Issue
Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo
HTML:
3.2
| Encoding:
UTF-8
| Version:
0.7.4