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/ [EMAIL PROTECTED] Programmers don't die, they just GOSUB without RETURN. _______________________________________________ Python-Dev mailing list Python-Dev@python.org http://mail.python.org/mailman/listinfo/python-dev Unsubscribe: http://mail.python.org/mailman/options/python-dev/archive%40mail-archive.com