[issue21398] pydoc heapq leaves terminal in an unusable state

2014-04-30 Thread Stéphane Wirtel

Stéphane Wirtel added the comment:

> locale
LANG="en_US.UTF-8"
LC_COLLATE="en_US.UTF-8"
LC_CTYPE="en_US.UTF-8"
LC_MESSAGES="en_US.UTF-8"
LC_MONETARY="en_US.UTF-8"
LC_NUMERIC="en_US.UTF-8"
LC_TIME="en_US.UTF-8"
LC_ALL="en_US.UTF-8"

--

___
Python tracker 

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



[issue21398] pydoc heapq leaves terminal in an unusable state

2014-04-30 Thread Stefan Krah

Stefan Krah added the comment:

Did you use the same locale settings?

--

___
Python tracker 

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



[issue21398] pydoc heapq leaves terminal in an unusable state

2014-04-30 Thread Stéphane Wirtel

Stéphane Wirtel added the comment:

the pydoc module works fine but when I use CTRL-C to quit it, I get this error 
in the terminal.

I think it's an other bug but the traceback is really similar.

Stephane

Traceback (most recent call last):
  File "/Users/stephane/src/projects/externals/cpython/Lib/runpy.py", line 170, 
in _run_module_as_main
"__main__", mod_spec)
  File "/Users/stephane/src/projects/externals/cpython/Lib/runpy.py", line 85, 
in _run_code
exec(code, run_globals)
  File "/Users/stephane/src/projects/externals/cpython/Lib/pydoc.py", line 
2615, in 
cli()
  File "/Users/stephane/src/projects/externals/cpython/Lib/pydoc.py", line 
2580, in cli
help.help(arg)
  File "/Users/stephane/src/projects/externals/cpython/Lib/pydoc.py", line 
1862, in help
elif request: doc(request, 'Help on %s:', output=self._output)
  File "/Users/stephane/src/projects/externals/cpython/Lib/pydoc.py", line 
1600, in doc
pager(render_doc(thing, title, forceload))
  File "/Users/stephane/src/projects/externals/cpython/Lib/pydoc.py", line 
1408, in pager
pager(text)
  File "/Users/stephane/src/projects/externals/cpython/Lib/pydoc.py", line 
1428, in 
return lambda text: pipepager(text, 'less')
  File "/Users/stephane/src/projects/externals/cpython/Lib/pydoc.py", line 
1450, in pipepager
pipe.close()
  File "/Users/stephane/src/projects/externals/cpython/Lib/os.py", line 957, in 
close
returncode = self._proc.wait()
  File "/Users/stephane/src/projects/externals/cpython/Lib/subprocess.py", line 
1581, in wait
(pid, sts) = self._try_wait(0)
  File "/Users/stephane/src/projects/externals/cpython/Lib/subprocess.py", line 
1529, in _try_wait
(pid, sts) = _eintr_retry_call(os.waitpid, self.pid, wait_flags)
  File "/Users/stephane/src/projects/externals/cpython/Lib/subprocess.py", line 
502, in _eintr_retry_call
return func(*args)
KeyboardInterrupt

--
nosy: +matrixise

___
Python tracker 

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



[issue21398] pydoc heapq leaves terminal in an unusable state

2014-04-30 Thread R. David Murray

R. David Murray added the comment:

Works fine for me.

--
nosy: +r.david.murray

___
Python tracker 

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



[issue21398] pydoc heapq leaves terminal in an unusable state

2014-04-30 Thread Stefan Krah

Changes by Stefan Krah :


--
type:  -> behavior

___
Python tracker 

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



[issue21398] pydoc heapq leaves terminal in an unusable state

2014-04-30 Thread Stefan Krah

New submission from Stefan Krah:

$ ./python -m pydoc heapq

Traceback (most recent call last):
  File "/home/stefan/hg/cpython/Lib/runpy.py", line 170, in _run_module_as_main
"__main__", mod_spec)
  File "/home/stefan/hg/cpython/Lib/runpy.py", line 85, in _run_code
exec(code, run_globals)
  File "/home/stefan/hg/cpython/Lib/pydoc.py", line 2615, in 
cli()
  File "/home/stefan/hg/cpython/Lib/pydoc.py", line 2580, in cli
help.help(arg)
  File "/home/stefan/hg/cpython/Lib/pydoc.py", line 1862, in help
elif request: doc(request, 'Help on %s:', output=self._output)
  File "/home/stefan/hg/cpython/Lib/pydoc.py", line 1600, in doc
pager(render_doc(thing, title, forceload))
  File "/home/stefan/hg/cpython/Lib/pydoc.py", line 1408, in pager
pager(text)
  File "/home/stefan/hg/cpython/Lib/pydoc.py", line 1422, in 
return lambda text: pipepager(text, os.environ['PAGER'])
  File "/home/stefan/hg/cpython/Lib/pydoc.py", line 1449, in pipepager
pipe.write(text)
UnicodeEncodeError: 'ascii' codec can't encode character '\xe7' in position 
3574: ordinal not in range(128)

$ stty sane
$ locale  
LANG=en_US.UTF-8
LANGUAGE=
LC_CTYPE="C"
LC_NUMERIC="C"
LC_TIME="C"
LC_COLLATE="C"
LC_MONETARY="C"
LC_MESSAGES="C"
LC_PAPER="C"
LC_NAME="C"
LC_ADDRESS="C"
LC_TELEPHONE="C"
LC_MEASUREMENT="C"
LC_IDENTIFICATION="C"
LC_ALL=C

--
messages: 217604
nosy: skrah
priority: normal
severity: normal
status: open
title: pydoc heapq leaves terminal in an unusable state
versions: Python 3.5

___
Python tracker 

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