[issue15648] stderr refs output does not respect PYTHONIOENCODING

2013-10-14 Thread Georg Brandl

Georg Brandl added the comment:

The refs output is only active in debug mode, and only for debugging. It is 
printed directly to stderr using C fprintf(), I don't think it's worth the 
complication.

--
nosy: +georg.brandl
resolution:  - wont fix
status: open - closed

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue15648
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue15648] stderr refs output does not respect PYTHONIOENCODING

2012-08-14 Thread Chris Jerdonek

New submission from Chris Jerdonek:

The --help documentation for the python executable says--

PYTHONIOENCODING: Encoding[:errors] used for stdin/stdout/stderr.

However, PYTHONIOENCODING doesn't seem to be respected for the python 
executable's refs output to stderr.  For example, this--

args = [sys.executable, '-c', print('[100 refs]')]

env = {'PYTHONIOENCODING': 'utf-8'}
popen = Popen(args, universal_newlines=False, stdin=PIPE, stdout=PIPE, 
stderr=PIPE, env=env)
print(repr(popen.communicate()))

env = {'PYTHONIOENCODING': 'utf-16'}
popen = Popen(args, universal_newlines=False, stdin=PIPE, stdout=PIPE, 
stderr=PIPE, env=env)
print(repr(popen.communicate()))

yields--

(b'[10 refs]\n', b'[41761 refs]\n')
(b'[\x001\x000\x00 \x00r\x00e\x00f\x00s\x00]\x00\n\x00', b'[42367 refs]\n')

--
messages: 168192
nosy: cjerdonek
priority: normal
severity: normal
status: open
title: stderr refs output does not respect PYTHONIOENCODING
versions: Python 3.3

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue15648
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com